Problem is: after the die animation is played, the character goes instantly back to idle. Is there any way to stop the whole animator when hitting the exit node?
So you don’t want a transition out of the death state. Delete that transition to exit and without a transition out the die state will be held at the last frame indefinitely.
In addition, as a safeguard, you’ll want to transition to the death state with a bool. All other transitions out of Any State should check if that bool is false. Then you can be sure that the animator sticks to that state. Otherwise you’ll end up situations where you set some trigger, and then die on the same frame, where the trigger will override the death stuff.
The transition to the death state also needs to have “can transition to self” set to false, otherwise it’ll start a new transition to that animation on every frame.
Thank you guys for the input. not using the exit state is the solution. it’s my first unity project, and I assumed exit would somehow end the whole animation once and for all. thanks for the additional tips also…