How to determine whether the sprite moves to the left or right, which would change the sprite depending on the movement. Sprite behavior MoveTo
Develop games in your browser. Powerful, performant & highly capable.
MoveTo behavior has MovingAngle expression. Use System conditions like "Is within angle", "Is between angles" to compare it.
For example:
Enemy.MoveTo.MovingAngle is within 45 degrees of 270
This means it's moving up.