First post here. I saw there are a few similar questions, but couldn't find one specific to my issue, so here it is:
Trying to make a basic platformer. The player physics are fine, and the enemy movement is fine, but when the enemy changes direction, the sprite rotates with it. So for example if it's in the correct position going right, it will rotate to be upside down when it comes back left. What I need is for it to face in the direction it is moving on the horizontal axis.
I was able to do this for the character by creating conditions such as "When right arrow pressed, mirror sprite", but I can't do that for enemies because they aren't controlled by input, so I can't apply the same conditions.
Is there some way of basically saying "when moving left, mirror image, and don't spin it around or upside down"?
Thanks in advance for any help.
Edit: Link for the capx file. As you'll be able to see, I'm just getting started and experimenting a little. The first thing that happens is the dragon spins upside down when he's supposed to be following the little guy.