Can anyone tell me why my jump is looping?

i don’t understand why this is happening… why i move forward it’s caught in a jump loop.

Im using Enum to change state FYI


This is the input in Char BP for Jump.

here’s how my Anim BP is set up

Hello,

I see in your BP you set your movement mode to jumping, did you already change back that Player state to running / idle when your player done jumping? If you set the state to jumping and never reset it, It can cause a loop in the jumping animation.

[Modify]
More explanation: When you change your state to Jumping, the anim will come back to Idle, BUT, It will go back again to jumping because the Player State is still jumping. That is what I think the problem is, but please let me know if that is not the problem!

do you mean to change it in the last Rule of the Anim BP or change it within the Character BP under the action Input? thanks for the input so far Spoon :slight_smile:

@ImAGoodSpoon1 so i set it to change state in the anim BP but it stays/freezes in the last frame and doesn’t transition back to running

@enam1984 Oh sorry I should be more clear. I mean change it within the Character BP. Your anim BP before is already correct I think so you can revert it back to the first one.

So what you can do is to reset the player state back to Running/Idle when your character done jumping.

Here is also an alternative you can use:

You can know is your char is still jumping or not by using this Is Falling Node. If Is Falling return True, then your character is still jumping. Yet if its returning false, then your character is already on the land.

@ImAGoodSpoon1 currently at this phase as to why its not going back to running.
Also Enhanced input is confusing me


Hey @enam1984

If you want to check for running state using Enhanced Input, I can’t give you a solution because I never use enhanced input before.

However, I will give you a solution that not using enhanced input.

What you can do is, in the Tick node, always check for IsFalling. then if its not falling, you can set the player state to running / idle again. I will give you an example in the image below.

For setting the player state to jump state, you can use enhanced input for that (When player pressed Space button, set the player state to jump state).