3 Replies Latest reply on Feb 1, 2009 11:23 AM by clbeech

    Collisions in Action Script 2

    Level 1
      so, I'm making a flash game where the main character is directed by the arrow keys. Since the game is supposed to take place in space, once the character is moving, it shouldn't stop moving until it hits one of the game's barriers or the opposing arrow key is pressed. When the character hits the wall, i want it to stop dead and stop any momentum it may have. I am using the code below and the barrier is called "edge". Also, the numbers in the parenthesis after the hit test are correct. Help would be really, really be appreciated.

      Here's what I'm going for; if you click the link you can see the various glitches and get an idea of my problem.

      http://etherealends.net/test/