java 2d game how to make a player jump
- by user2957632
Hi I'm making a 2d plat former running game kind of like jetpack joyride fro example were u are constantly running but there is obstacles and u need to jump over them. but I want the character to jump and come back down. here is some of my code.
if (listen.ml == true) {
if (y > 120) {
jump =…