collisions in flash mx help???

6 posts

Flag Post

lets say your controlling a circle with the mouse and then you collide with a wall how would i make it so you start at the begging again.
by the way i’m new to flash

 
Flag Post

What do you have trouble with? Detecting the collision, or resetting the level?

 
Flag Post

both

 
Flag Post

http://www.newgrounds.com/bbs/topic/469309
Nice little tutorial for circle hitTests. They’re a bit complex so you might want to use a square instead.
As for restarting, it would depend on how this game is supposed to work. Do you lose a life and have to go back to the beginning? Or is it something else?

 
Flag Post

yes thats exactly it

 
Flag Post

any more help…