# Compare the x positions of your enemy and your player, and set the enemy's x scale to 1 or -1, depending on the result.