How can i fix this?

Screenshot - c94feec966599b32b4f9e62764cae56a - Gyazo > how i got jumping working pretty werid…
Screenshot - 823f1281e97ce1889f4a58fdcbfe2929 - Gyazo > state machine
Screenshot - f15b21d129706ab93e1e6d3f5118dcc6 - Gyazo > animGraph

the problem is a player can go into the jump animation and out of the jump animation, but if the player is holding down the jump button the jump animation keeps playing until it’s let go any help or ideas would be great on fixing the problem thank you.

  • Jay

Have a great day!

Hey there. It might be a better idea to base the jumping states off a character-centric variable like Tracing for the distance from the bottom of your collision to the floor below, then you can keep it in a jump loop for any time/distance that your level can throw (and snap it on/off when the distance is within a threshold+input received). If you haven’t yet, take a look at this vid where they set up something like what you’re trying to achieve.