OK so i need to try and make my player jump, and although i can him to move upwards on a keypress i have no idea how to get him to come back down on his own (basically implement gravity
The code below is what i use to move the character upwards on key press, i can't work out hwo to implement gravity, want to use Y pos as much as possible, don't want to cahg e to using VelY if i can help it
p1.setYpos(p1.getYpos() - 15); // Allows player to jump upwards.