For example, in the Example Games, there is a example of a side scrolling game. But the character always looks like it vibrates when it is on the ground - and I don't like it. Please help me get rid of this!
Offline
That's because the character sinks into the ground, then is pushed back up, then sinks back down, etc. I believe that it's actually unnoticeable if you enter the stage view, but you can also fix it by making the sprite not go up when touching the ground. The disadvantage, however, is that the sprite will go right through upward slopes.
Offline
Olkay, thanks, but how do you make the sprite actually bumps on walls, and not flow upwards?
Offline
For that you'll need a sensor sprite that looks something like this:
The sensor follows the player around. If one side is touching something like a wall it sets a variable (such as right_hittest) to 1. Then on the player sprite, make it so that it can't move right if right_hittest is equal to 1.
Offline
Des that still work if I hide that sensor sprite?
Offline
I'll create a tutorial. I'm an expert on these things.
Offline
thanks
Offline
Here is the tutorial! Hope this helps
Last edited by rabbit1131 (2011-06-23 12:35:53)
Offline