I don't understand how I can use sensors in my project. I downloaded 08jackt's project and he seems to know how but I don't. ?
Offline
Sensors can not only check for when you run into things, they can also be used to tell you what you've run into and which in which direction.
Look at it this way, the more sprites and obstacles you have, the better your collision detection will have to be. You can make a single sprite bounce off the edges of the stage and run around quite easily but to make that sprite walk on floors or platforms, run into walls, pick up things, get hit by things, etc, you must use more complicated collision detection methods. I have a game that I can't get to upload at the moment but it uses several methods and it is a pretty simple game.
Offline
Sensors look like this:
What's key is the sides, each of which is a different color. (You can adjust size based on your needs.) This allows you to tell it to move differently based on which side (represented by color) is touching something.
The sensor controls all movement of the player sprite, which just infinitely goes to the position of the sensor sprite. (Make sure to set the ghost effect on the sensor sprite to 100; this will hide it, but keep the sprite active, allowing it to function as normal.)
Offline