My enemies do not flip horizontally when they should

I’m at the stage of devolping my game where I set up enemy movement (before AI, etc.) and I found this issue:

The enemies will hit the “goleft” marker, turn left and flip their sprites to the left, as they should, but when they hit a “goright” marker, they go right but their sprites do not change direction:
ezgif-563d5f0a59c62467

This is the code for the enemies:

Mind you that I have a command at the top of the code to flip the enemy sprites to the right (they spawn facing left, even though the sprite is designed “facing right”):

2

I’ve found two tutorials but they were outdated / not so helpful

What did I got wrong? Do I need to forget about flipping the object and instead do the flipping via animations (one anim for each side the enemy will face)?

Move the action “Flip horizontally Enemy : no” from the beginning of scene event to the event where the enemy collides with the GoRight object.

What’s happening is the Enemy is being flipped when they hit the GoLeft, but there are no commands to undo the flip when they hit the GoRight object.

1 Like

1 Like

…good…
I’m glad they’re working fine now.

3 Likes

Hahaha. I see what you did there, and you’ve bypassed any censoring bot :rofl:

3 Likes