Input is simple when the player pressed right, add to the players X position. I assume what you want to do, however, is make it so you can jump. That's pretty simple. You want a velocity variable, just call it PV (Player Velocity). When the player presses the jump button, change this variable to a negative value. This is where you move on to the second part of code I mentioned. You'll want...