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/h08/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/h08/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/h08/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/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Avoider Game — Part 2 — Michael James Williams

Avoider Game — Part 2


{ 11 comments… read them below or add one }

brart October 7, 2008 at 11:05 pm

mouse.hide(); is a must for mouse avoiding games


MichaelJWilliams October 7, 2008 at 11:26 pm

I agree, brart. I’m not really sure why I left it out of these first two parts. I’ll add it in soon, as well as some more mouse improvements!
Thanks for the tip.

n00b4life May 3, 2009 at 3:15 am

how did u make it so that the collisions were between the objects? when i test the game there is an invisible box around my avatar so the game stops whenever he gets close to an enemy.

MichaelJWilliams May 3, 2009 at 12:16 pm

The improved collision detection is added in Part 6. Right now it’s just using a simple bounding box hitTest, hence the “invisible box” effect you’re talking about.

ЗЗЗЗ July 20, 2010 at 10:49 am

а по русски моно?))

Michael Williams July 23, 2010 at 11:37 am

Sorry, 3333, I don’t know what that means. Google Translate gives me, “and by Russian mono?” which, uh.. I don’t know.

Quadro9 July 23, 2010 at 5:06 pm

3333, just wanted to ask, is it possible to translate this tutorial into Russian )
“а по русски можно?”

Michael Williams July 26, 2010 at 3:53 pm

Ohh right. Well, I don’t speak Russian so I can’t do that 🙂 But if anyone else can translate, that’d be really cool.

Mr.Awesome December 6, 2010 at 1:59 pm

Great tutorial 😀
I’m new to flash,just follow the tutorials for few days. I hope i’ll remember when to put all those brackets and stuff after some practice.

Sanscho June 22, 2011 at 6:03 pm

hey, so where to put the mouse.hide(); ?

t May 28, 2012 at 9:10 pm

right-click to create a menu and click off the screen to make skull teleport off-screen and live forever…

for a really worthwhile way to spend your time

Leave a Comment

Writing code? Write <pre> at the start and </pre> at the end to keep it looking neat.