Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mill94 |
I am making a platformer game. How do I make the enemy face the player if the player is on the other side?
Your question isn’t really clear. Do you mean flipping your character’s sprite horizontally ? If yes, then this might help :
- https://forum.godotengine.org/16871/mirror-flipping-the-charater
- https://www.youtube.com/watch?v=PadWd33YjWM
These links are about flipping the main character’s sprite but the main idea is to use the set_flip_h()
function in your enemy script.
edesse | 2020-11-27 14:24