I have a Metroidvania-style prototype and I have some animations that I made for my character to swing a sword.
Is there a way to play the animation and then have the animation automatically return to idle?
Basically I press the attack button and the animation plays then when the animation is over it returns to the idle animation. I already have bools set for the animation to play in the Animator.
2 Answers
2
I’d recommend watching a tutorial on how the Animator works because it seems you may not fully understand. So the solution is simply have an idle animation in the Animator that you create a transition back to. If you don’t know how to add an animation to the Animator or create a transition or edit transition properties then it will all be explained in a tutorial video. Also in the future showing a picture of your Animator helps out a lot too
If you set the transition Exit Time to “1” that means the animation will play once and then follow the transition. If you don’t put any other conditions on the transition, then it will always be followed after the animation finishes.
