- Home /
2d character moves on the x and y-axis while only rotating at x-axis with joystick
I am making a 2d top down game with only using x,y-axis. Currently, I have made up, down, right, left movement with the Easy touch plugins' joystick. However, I can not find a way to make the character rotate to the x and -x direction when I press right and left. In other words, the character is always facing the same direction. I want to make the character change the direction when the character moves horizontally while maintaining the direction when the character moves up and down. Any help would be thankful.
Your answer
![](https://koobas.hobune.stream/wayback/20220612084708im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
2D top down rotation with Xbox Right Joystick 0 Answers
Setting up Virtual Joysticks to move player? 0 Answers
2D Character Jumps only 1 time 2 Answers
I am having problems with making my character face the movement direction after stopping. 1 Answer