Animation Loop Glitches with AnimStarterPack?

Hi. I followed the AnimStarterPack tutorial. I am having a problem with some of the prone animations looping if I spam press Z (prone button) or space (jump button), or a combination of both.


*This is the link : https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/CharacterMovement/Blueprints/index.html *

Prone Function *https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/CharacterMovement/Blueprints/AnimBlueprint_Prone/index.html *

Jump Function
*https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/CharacterMovement/Blueprints/AnimBlueprint_Jump/index.html *

Character Blueprint
*https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/CharacterMovement/Blueprints/Setup_2/index.html *


*Here is a link to a video I posted of the glitches : Animation Bug on Vimeo *

Prone Glitch :
At 9 seconds, you can see that I am just spamming the prone button, and it happens once.
At 28-32 seconds, I got the glitch to happen and did not press the prone button again, so the animation kept looping.

Jump/Prone Glitch :
At 36-45 seconds, I started just spamming the prone and jump button, this glitch where I jump while lying down happened multiple times. Also, the prone glitch shows up towards the end.


My scripts and properties are set exactly to this tutorial.

I have already tried to implement a timer so you cannot jump or prone extremely fast, but it caused the animations to loop, so I reverted back to the tutorial.

Any help on this would be GREATLY appreciated. Thank you so much!

Check your animation node to see if the stand to prone animation is set to looping in your animBP…it should not be.

Hey Black Phoenyx, thank you so much for the reply! That actually fixed the prone glitch. I really appreciate it. The only problem I am having now is when I spam Z and SPACE at the same time, he sometimes jumps (not the animation, but just pops up in the air) when he gets into prone position, and sometimes he breaks free from the disable movement and is allowed to move around in prone. I know I am asking about a lot of stuff, so if you can help that would be great, but if not that is totally fine too.

Thanks again for your help! :smiley:

EDIT : The text I put in italics is actually false, I just tested it and it seems the only bug is that he can pop up in the air while he is prone sometimes if I spam Z and space.

EDIT 2 : Just realized that if I press Z twice, I am able to slide around on the ground while in prone; if I press it once more, it disables my movement but keeps me on the ground.

When you are in the prone position setup a disabling branch and Boolean check so that the character cannot jump, so create a variable “CanJump?” that is a Boolean and set it to true only when not in prone and when prone set to false…when you restore the canjump add a delay that will allow for the character to fully standup before setting it back to true. This will prevent the ability to jump while in prone. Also don’t forget to mark this as resolved/answered.