Continous jump problem

I have a problem with the character that keeps jumping endlessly if i hold down the input button. i want the character to wait for the next input to jump. i made a custom touch system where i can check if the player swiped in a different direction. how can i solve this problem?


Blueprint:

Don’t connect the “Ongoing” pin to your jump action. Otherwise the jump action is called every frame and once you hit the ground the character will jump again immediately.

I tried it but it’s not the effect that I wanted because I want to:

  1. the character jump

  2. then if he’s not jumping the check fire and he can jump once as long as I keep the touch input hold.

  3. when I release the hold button he can jump again

You can use a Gate.
When jump happens, close the Gate.
When button is released, open the Gate.

Or do something equivalent with a boolean.

2 Likes

thanks this solved the issue

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.