Flip a 2d character to the left or right depending on mouse position relative to the character
Hello!
I am learning game development by creating a 2d sidescrolling/shooting game. I created an aiming system where the character aims at the mouseposition but right now my solution doesn't account for aiming behind the character (when you move the mouse behind him, his arms just rotate all the way back and he's aiming backwards) I would like the character to flip if the mouse is behind him.
Any ideas on how to flip the character when the mouse is behind him? No sure how to do that relative to the character.
Your answer
Follow this Question
Related Questions
2D RigidBody slightly penetrates objects causing a bounce effect. 3 Answers
2d Plataform Player Walking on the Wall c# 0 Answers
My trigger won't activate the UI when the player collides with it. 0 Answers
Picking up 2D collectables in an order? 0 Answers
How can I fix a null pointer exception? (2d platformer tutorial) 1 Answer