How do I move my 2d sprite left and right but also rotate in- place!
I know how to make the object move with left and right key press...but at times if a bool is true I want the object to rotate....I got the bool and rotate working but it makes the object orbit...I want the object to rotate in place and not effect the left and right path!
Comment
Best Answer
Answer by ejoo_pasco · Oct 07, 2019 at 07:51 AM
Hi Rondu101, sounds like your pivot is not in the center of the sprite. Check eg. by opening the sprite in the sprite editor. And otherwise: if you check the rotation from transform setting in the Inspector and it does as expected, there is something wrong with your rotating code.