Game PRogramming Jumping.
Posted on 2004-11-17
Im making a little game and despite some minor forgivable bugs it's going alright so far but i want to inplement jumping with both the hero and enemy's though ill worry about the controlled character for now.
Ive managed to get jumping going by following a simple tutorial targeted at game programming i have the guy jumping up and down correctly.
But......what if he's moving or not moving? i know what to do in both situations but how can i tell the two apart. Moving left or right is done via Left and Right arrow keys a var can be set so i know their moving either way but how would i tell if he's not moving?