Warning: Declaration of thesis_comment::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Warning: Declaration of thesis_comment::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Warning: Declaration of thesis_comment::start_el(&$output, $comment, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Warning: Declaration of thesis_comment::end_el(&$output, $comment, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0 Avoider Game — Part 7 — Michael James Williams
It’s been pointed out that you can move the avatar outside of the “walls” of the game and just sit there racking up points. Oops. Check out the comments on Part 7 for hints on how to fix this.
Hi,
how possible would it be to move the avatar and 2 directions at the same time? I mean if we press right and up arrows, then the character would move to up and right.(while now it moves only at one directions when 2 keys are both pressed).
I’m pretty sure it displays half the actual time I stayed playing, I had to divide per 500 instead of 1000 to get the actual time in seconds… anyone knows why this happens?
25 miliseconds, just like in the example. In fact, if you time the game in the example embedded in this very page, it also counts half the seconds, so I guess this is not happening just in my code (sorry for any mistake – not a native English speaker).
Hmm, I just timed it, and it is a little off (22 seconds in real life, but game reported it as 19 seconds) but not half the speed.
The AS3 Timer class does not keep perfect time, it’s true. I know someone who is working on improving it 🙂 I’m surprised to find it so far off in your case, though. Are you running a lot of other things on your computer?
{ 13 comments… read them below or add one }
800/16, not a bad score I guess.
It’s been pointed out that you can move the avatar outside of the “walls” of the game and just sit there racking up points. Oops. Check out the comments on Part 7 for hints on how to fix this.
Edit: Fixed! Check out this post for more info.
Hi,
how possible would it be to move the avatar and 2 directions at the same time? I mean if we press right and up arrows, then the character would move to up and right.(while now it moves only at one directions when 2 keys are both pressed).
Very possible! Check out the comments on the main part of the tutorial for more.
…and also the tutorial, Diagonal Movement in the Avoider Game.
I’m pretty sure it displays half the actual time I stayed playing, I had to divide per 500 instead of 1000 to get the actual time in seconds… anyone knows why this happens?
Odd… what’s your timer’s delay?
25 miliseconds, just like in the example. In fact, if you time the game in the example embedded in this very page, it also counts half the seconds, so I guess this is not happening just in my code (sorry for any mistake – not a native English speaker).
Hmm, I just timed it, and it is a little off (22 seconds in real life, but game reported it as 19 seconds) but not half the speed.
The AS3 Timer class does not keep perfect time, it’s true. I know someone who is working on improving it 🙂 I’m surprised to find it so far off in your case, though. Are you running a lot of other things on your computer?
Hehe, in fact, I’ve been using the slowest and oldest MacBook in all of my office for a couple of months now =P I hope that’s not the reason!
Ha! Well, it’s possible 🙂
It seems to be an error in the source code of part 7, the score and time elapsed dont work correctly, could you give a check to that?
@Manolis
Are you Greek??
If you are:
Όπα ρε! Έχουμε και Έλληνες εδώ;