- Home /
2D Movement and getting the mouse position
I have no idea what to do, been struggling for over a week. I wanna make it so when you click with a mouse it rotates you to the correct side and plays the animation. But only left up down and right. For example if he is going left and fire on the right he rotates to the right and stays there. Example image . For example take a look at (great game), something like that. I have all of the necessary animations. But as well im using coroutines to stop the attack animation and to handle attack speed, which isnt the best thing but only thing that works.Any help or tip is greatly appreciated I'm stuck here.
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Help with rotating a sprite with mouse. 2 Answers
Simple Animation and Scripting Problem. 1 Answer
Having problem with detecting movement 1 Answer
2D Movement with axis? 1 Answer