View Single Post
Posts: n/a
Default 02-26-2009, 11:53 AM

There are several worlds that are shared that employ collision detection. For example, check out the JetStix world in the Madden games thread.

Usually, you do collision detection by using proximity functions: If the object you are moving is within e.g. 1 meter of 'wall', set the object's speed to 0/ decrease speed/ move backward.

Try and experiment a bit, or simply look at someone else's code and imitate it.. You're allowed to do that!

Good luck!

Or, simply, under the events tab, 'let arrow keys move object', if that is applicable to your world. It will prevent the object from moving through walls.

However, beware: the object is able to move through walls and objects if it is moving backwards, so it can be exploited in certain worlds/games. Collision detection works, for certain reasons, only during forward movement.

Last edited by JustasM; 02-26-2009 at 11:57 AM.
Reply With Quote