Collision without bounce?

I'm trying to put together a simple maze game and implemented a rule that says "If the key is down, go in that direction." That part works. (I did this by Accelerating in the desired direction, in case there's a different/better way).

Then I added, "If overlapping with an actor of type Wall, set your velocity to zero."

That works too, except for one problem. If I then press the direction key again, my player goes ahead and starts up and runs right across my wall.

I tried the Collide behavior, but I don't want a bounce, I want a stop. Everything I've googled always takes me back to collide, but I just want my actor to stop, and not be able to proceed no matter how many times he hits that direction key.

Comments

Sign In or Register to comment.