I'm writing a very simple platformer, and i'm trying to get the script that controls the player right. I have the following so far:
There's some piping code for when i add in a lava tile to my platformer, but ignore that for now. Right now, i'm just trying to get my platformer guy to jump: If he is still on a surface, and i press space, he won't jump. The force i'm applying should be enough, yet it doesn't seem to be jumping. What's the recommended way to get something to "jump"?
asked Apr 02 '10 at 09:50 AM
Rather than applying a force you could try directly altering the velocity:
The ground part is to make sure you're on the ground before you can jump (unless you have some kind of double jump). You might also want to stop auto jumping if you hold down the space key.
answered Apr 16 '10 at 06:10 PM