Changing direction after collision

Posted by Balint on Game Development See other posts from Game Development or by Balint
Published on 2014-08-20T22:45:32Z Indexed on 2014/08/21 4:33 UTC
Read the original article Hit count: 242

In the first tutorial for GameMaker (catch the clown), I want to set the direction of the clown after the collision with the wall.

I want to do it by pressing the wall object with the mouse (before the collision, to set the angle parameter). For example by pressing only once the wall object it would change the clown's direction after collision by 45 degrees, twice by 90 degrees, and so on.

How can I do that?

© Game Development or respective owner

Related posts about collision-resolution

Related posts about game-maker