Animation transition help!

I’ve searched everywhere and the only forum I seen where someone had the same issue, was unresolved.

Basically when my player sprites speed is > 0.01, he transitions into a running animation and when its < 0.01 he goes back to idle. Great. But when I Flip him, it sets the speed to 0, so when I run and change direction, the idle animation plays for a split second, it worked fine before so I don’t see why this is happening. How would I fix it? Maybe set the speed of the flip to 0.01 in my flip code? I’m not the best programmer and I’m new to unity. Any help is appreciated!

In the animation window click on the transition arrow and try changing the interruption source to next source, hopefully that does something for you. If not just play around with the settings that’s the best way to learn.

As I have understand it, change direction will make speed negative and the run animation will not start. Try to convert speed to absolute value with Mathf.abs (speed); and use the value in animator.

You have transitions from Idle to Running at speed > 0.01, and Running to Idle at speed < 0.01. So when you set his speed to 0 it will transition from Running to Idle, then back to Running as soon as speed > 0.01. So the simplest way to avoid Idle in this scenario is to set speed to 0.01 when you Flip, as you suggested. It would avoid any complicated animation states and extra transitions.