Hello everyone. So I made touchscreen jump and double jump by taping an object on the screen.
The problem is, when player falls on the ground, and you tap to jump, it has a small delay, and won't jump instantly.
Is there a way to make it more fluid, so the player can jump instantly when it hits the ground, while tapping on the screen?
Try on landed.
Develop games in your browser. Powerful, performant & highly capable.
You could try this , too:
Player is overlapping ground at offset (y=16 or whatever) ---> On Space pressed simulate jump
This way, I think player can jump before the collision with the ground.
Ps: you can try adding another condition: Player is falling. Maybe would work better
You can try something like this too
Dont use tap. Use touch start