How do I make my player jump. I know I need x and y axis but how do I actually make the player go up a certain height and then come back down.
Thanks for your help in advance
Last edited by roggie12 on Sat May 25, 2013 8:34 pm, edited 1 time in total.
There are a million ways to do that, and which ones work best depends on how the rest of your code is structured, and we can give you in the mean time is some vague ideas or examples.
Do you have gravity already? Half of jumping is falling, and it will be easier if your player already can fall of things.
Also, you need to keep track of whether the player is currently jumping, and the time the jump still has left (because jumping usually takes time, otherwise it looked like the player teleported up rather than jumped).