I’ve searched for solutions but nothing works for me, if I press a button my player starts “flying”. I don’t know what’s wrong since I’m not so good at writing code (I take references from tutorials around the web).
My scene is pretty simple. I have a scrolling background, a player who is not moving (I don’t want to) and obstacles coming to his way. What I want is if user gives a input, my player’s jumping.