I’m using this code to jump and double jump with my character:
However, if I continue to press my Jump button on landing, the character don’t loop the jump. Is there a way to continue jumping if the Jump key is continued to be held on landing?
I’m using this code to jump and double jump with my character:
However, if I continue to press my Jump button on landing, the character don’t loop the jump. Is there a way to continue jumping if the Jump key is continued to be held on landing?
Are you using the ThirdPersonCharacter template? If so, you might want to look into the actors details.
There should be a jump max count setting. I never tried it myself, but I imagine it could spare you some headache.
Yes, I set Hold time to 0,01 and Max Count to 2 so he can do the double jump.
Try something like this. Worked for me.
Careful with Max Jump Hold Time, this will control how long you will jump for too, set it to 1 to try it out.
You need that delay node, otherwise it refuses to work but I have no idea why…
Then maybe this helps:
Since the button only fires a single time when it’s pressed, you probably need to go for a while loop to continue performing the action you want.
I have done something similar but forgot about the delay, it’s working now, thanks
Yeah I was wondering why it didn’t work without delay. I came across this couple times already in various scripts. At the end it worked.
Glad I was able to help.