Topic was automatically imported from the old Question2Answer platform.
Asked By
ImANoobAtCoding
so im currently making a script for my enemy, this is for a topdown game.
idk how to make it so that if the player is at the right, the enemy also faces the right and same goes to up, down, and left
It really depends on how you want the enemy to face the player. If you just want the enemy to rotate, how about using look_at with the player’s global_position?
thanks but i meant for animation, like it plays the left animation when the player is at the left of the enemy