Rotate sprite around pivot
Posted: Mon Nov 28, 2016 9:20 pm
Hey,
As far as I know, there's no native way to rotate around a given point (a "pivot"). And because my maths are terrible, I'd like to know what exactly should I do to do that. When the pivot is at SpriteWidth()/2 and SpriteHeight()/2, RotateSprite() is enough because it rotates around the center of the sprite, but not when I change it.
I searched on a few website, but everything is bound to a language that include native functions to do this kind of stuff. Maybe I missed a PB function?
As far as I know, there's no native way to rotate around a given point (a "pivot"). And because my maths are terrible, I'd like to know what exactly should I do to do that. When the pivot is at SpriteWidth()/2 and SpriteHeight()/2, RotateSprite() is enough because it rotates around the center of the sprite, but not when I change it.
I searched on a few website, but everything is bound to a language that include native functions to do this kind of stuff. Maybe I missed a PB function?