Hi guys,
I am having an issue with the Animator (controller). I structured a pretty plain state machine (currently having a transition from an idle animation to a spell animation). The way the transition is controlled is through SetInteger. In my script, at some point, I SetInteger to 1. This plays the animation as expected. However, when the “spell” animation finishes playing and it goes back to idle, it replays the same sequence of states over and over again (basically loops idle-spell-idle-spell-etc.).
How am I going to revert to the original idle animation only until commanded otherwise? If I were to use a timer to find when the animation finishes and then SetInteger back to 0, I wouldn’t use the animator, which is supposed to handle this stuff automatically.
The problem might stem from the way I set up the transitions, so, based on the problem, if you can estimate where the answer might lie, let me know! Thank you in advance for your help.