How to change Anchor point of my Image manually ?
SnoozerBear
Member Posts: 2
i want to change the rotating point of my image but it sticks to center ....
Best Answers
-
LeonardDeveloper Posts: 4,630Hiya,
I found this in my GS notebook (Oldschool I know...)
I don't know where I sourced it from (Probaply from that thread @tshirtbooth is trying to remember), but this should sort your problem:
self.position.x = game.sceneX-magnitude( self.offsetX , self.offsetY )*sin(( self.Rotation )-atan( self.offsetX / self.offsetY ))
self.position.y = game.sceneY+magnitude( self.offsetX , self.offsetY )*cos(( self.Rotation )-atan( self.offsetX / self.offsetY ))
Answers
i'm not good at math but it looks help full thank you guys