Npc walking/idle animation is flipped while playing

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I am trying to make a simple animation for the idle of the enemy and the movement.

  1. What is the issue? Include screenshots / videos if possible!

The enemy flips while doing either animation.
image
image

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yes, but I only found solutions to other problems.

Sorry if this post wasn’t that descriptive, I didn’t know what else to add and it was kind of late for me.

Also, I have set the animation priority to Idle and Movement for the idle and movement animations respectively. If this is the reason of the problem please tell me.