How can I flip the player based on the position of the mouse cursor?,How can I flip my player based on the cursor's location?
Okay so I have my player game ready thus far, however the player's turns around based on the movement keys rather than the cursor's location. This is a problem because the weapon is set to rotate and follow the mouse so I have something that looks like this while I run and shoot:
What I'm trying to do is to flip the player, have him transform scale -1 on the X axis based on the position of the mouse. So that the arms don't look so off like that. Can someone help? I've seen a lot of tutorials but they either cover transforming the scale based on the keypad or rotating the player instead of having him face the other way.
example-image.jpg
(29.1 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612235417im_/https://answers.unity.com/themes/thub/images/avi.jpg)