What you need to have is a gravity code in place. Easiet way is to trace from the player to the ground and if there is space between the feet of the player and the ground you move them down using c_MOVE


Now when you press the space bar have it call a function that puts upward force on the player. Each frame have that number dropped down a bit. Use c_move to move the player up.

This should give you tw0 sets of c_move which is not a good thing but it will work and the framerate slow down, if there is any, would be very low to none at all and will work fine until you get further in codding.

Now if gravity is at -5 then the up jump should be 15.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!