2D Animation Problem.
I have an animation problem. When I move my character, it animates fine but when I let go of an arrow key to make the character stop moving, it gives me a facing downward animation for a second before stopping. I don't know why that facing downward animation plays.
Here is an example. https://imgur.com/a/KOP4Y
Here is the code if the problem is the code. https://imgur.com/a/WrrMq
I also get this error:
difference in effective length between states is too big. transition preview will be disabled
can you show the animator too and describe under which condition the transition to lookdown passes?
I took some screenshots.
https://imgur.com/a/$$anonymous$$0XDw
the lookdown condition seems to happen once i release one of the arrow keys. I'll press right and it will animate and move right, then i'll release it and it will look down right before it looks right. I played all of my animations separately and they all play as normal so it has something to do with the animation ending. I have it set to move to the next grid block and if i release the key while im closer to the next block then the downward animation is shorter so it seems to finish the walking animation before reaching the grid block and reverts to looking down and then once it reaches the grid block then it plays the idle animation.
Your answer
Follow this Question
Related Questions
Animation clip not playing but still affecting components of other clips 0 Answers
Animator doesn't change animation in Update() function 0 Answers
Animating physics problem 1 Answer
MobController 1 Answer