How can i make, the enemy is facing then Player? For example… when the player is left from the enemy, enemy is flipped and when the player is right from the enemy, enemy is Not flipped.
I found a primitive and circumstantial way to do it. But i think there is a smarter Way!
My way was to make Two squares and set them to the midle of the enemy. when the player collides with Square 1 “do flip”, when player collides with Square 2 , “do not flip”.
is there any smarter/ other Solution?