Animation keeps resetting partway in

Im having trouble with my characters animations, the animation keep restarting partway in. the way my players movement is handled is the script will check the fixedupdate for the keys being pressed, and if they are it will set walking to true, im pretty sure the animation is getting reset whenver the Bool is being set true each time, just a guess. does anyone know how to fix this? thanks in advance.

1 Like

I’m having the same issue in a 2D project in which i’m setting the bool in the fixed update function. I tried doing it only if it “animator.getbool” returned false, but that didn’t solve the issue. Someone please help me out with this. Thanks.

Update: Some more testing showed that the problem may be originating from the fact that I’m transitions from the any state block. That means it’s jumping from itself back to itself because the conditions are true and it’s in “any state”. How can it work that it only transitions from any state except itself?

2 Likes

Bullseye! This is my issue, it was caused by starting from Any State, and keeps triggering over and over, I thought it was my bool. I am avoiding Any State for now. Animations are really tricky!!

which application need for making animatio

For anyone coming across this now, you can easily make it so that transitions from Any State won’t transition to self, just click on the transition, drop down the settings in the inspector, and uncheck “Can Transition To Self”

1 Like