Question by
fireqwert7 · Dec 29, 2015 at 09:02 AM ·
rotation2d-platformer
How to rotate a 2d sprite around the center
Hi, I was wondering how to rotate a sprite around its center, rather than reflecting it, thus moving the sprites center through scripting. I'm new to unity, and am trying to make a 2d game.
Comment
you should ask this question in the help room. and watch a few bunch of tutorials first.
Answer by zaher_it · Dec 29, 2015 at 09:45 AM
Change rotation value on Axis Z
Oh, sorry, my question wasn't specific enough. I'm wondering how to do it through scripting.
Sorry. You can use dotween library which makes it super easy
Your answer
![](https://koobas.hobune.stream/wayback/20220612054218im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Platformer - Arm rotation / fliping problem 1 Answer
2d Turret WORKS but is turned 90 degrees from the right way 2 Answers
2D Sprite rotation 180 degrees 0 Answers
Rotate on Touch Input 1 Answer
Walk around square platform 0 Answers