Animation Loop Glitches with AnimStarterPack?! Help D:

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 : Setting Up Character Movement | Unreal Engine Documentation *

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!

These are just VERY BASIC examples for implementing animation. Not really AAA content to throw in your game and finished. As you noticed they can use much more logic. As a start you could add more variables, maybe something like “IsProneAnimationFinished” which will be set to true after the animation finished playing (or a timer) and disable player input while it is false? Just one of a hundred possible approaches to problems like that. The Anim Starter pack is really by no means an out-of-the-box solution. If you wanna look for some more mature solutions to save you time (I take it that you don’t wanna re-invent the wheel) with that then take a look at the “Shooter Game” project (You find it under the learning category in the launcher and there are other good examples in there for free). If you are willing to spend real money there are also good templates at the marketplace that are intended to be an “out of the box” solution.

Hey Fronzel, thank you for the reply! I appreciate your advice. I wouldn’t mind starting from scratch on an animation system because I can learn a few things from it, like I did in this tutorial. Is the bug because of the timing? And would I make the variables run in the animation graph?

Well i wouldn’t even call it a bug - it does what the blueprints say and these are very…simple. Yes timing is a problem, it is simply not handled. I don’t have UE4 on this computer, so i can’t check - but I’d put the variables either in the animation blueprint or wherever the key actions are defined (Player controller? If it has one…).

If you wanna learn by inspection i suggest you take a look at the mentioned examples. Also the FPS and 3rd person templates have some simple animation.

If you really wanna go the hard way and do everything from scratch then maybe take a look at shootertutorial.com - not exactly spoon feeding every click, so still takes some trial and error to follow and you learn much about blue prints, custom player controller, handling key press, making animations, etc. Will be very hard for a novice, but if you manage to follow these you will learn really a lot.