Download

How to correctly call an animation with an input action?

Because I’m feeling froggy I’m asking a second question in the forums tonight. I want to add in a dodge animation. I’ve created one, but when I call it in the blueprint (input action dodge, play animation, etc) the animation will freeze at the end and won’t return to the regular walk and run animations. I just kinda slide around in this frozen position. Solutions?

Thanks

You shouldn’t play animations from your characters blueprint. Instead make an animation montage and play it from your characters AnimGraph using a Play Animation Montage node inside the AnimGraph
You can trigger it by casting to your AnimGraph on a keypress from your charaters blueprint which calls a Custom Event in your AnimGraph that’s connected to the Play Animation Montage node.

Thanks, works perfectly now.