Hey, working on a simple platformer and i have a small problem.
The only control player has is just JUMP.
Longer the player has button pressed the higher he will jump.
But if i want to keep jumping i have to release, and then press again when it touches the floor.
So how do i make it that i can have my mouse button/finger pressed and object will keep jumping whenever it hits the floor without me having to release and press again.
gyazo.com/88bf1cff5a89e1511af0eaf8e7e70590
Thx