I am working on my game’s first boss fight, and one of his minions needs to run from the player when the player gets too close. I originally had this event:
But that didn’t work because if you approached the enemy from above or below the enemy would move towards you. I think that’s because the Y coordinate doesn’t need the *-1, but the X coordinate does. How could I separate these coordinates so that the enemy would move away from the player?