When I get behind an enemy I want that enemy to play an animation turning the other way, I tried to compare the X coordinate but all I get is the animation playing infinitely.
I apologize for the bad english
Add a trigger once to the logic where you compare if player X is now greater or less than enemy X.
Develop games in your browser. Powerful, performant & highly capable.
that helped me, thanks!