Having a bug with the jump animation when spamming space bar
My jump animation is working fine when just pressing the space bar, but when I spam it or press it again at the second my character touched the ground, the animation becomes stuck at the first frame :(
Here is a gif :
As you can see, the first 2 jumps worked fine, but the last 2 ones got stuck at the first frame..
Here is the blueprint of my character :
(don't mind the "double" and the "tapéair" variables, they're for the double jump and the hit in air animations.)
Thanks for the help !
The way I'd handle it is that when you execute the jump function, just prior to that have a Is Falling? check which covers both going up and coming down (essentially if gravity is affecting your movement velocity or direction) and then if that comes back False, proceed with the jump but if it's true, do nothing and ignore the input.
answered May 11 '19 at 04:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here