How to change Anchor point of my Image manually ?

i want to change the rotating point of my image but it sticks to center ....

Best Answers

  • LeonardDeveloperLeonardDeveloper Posts: 4,630
    Accepted Answer
    Hiya,
    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 ))
  • LeonardDeveloperLeonardDeveloper Posts: 4,630
    edited December 2012 Accepted Answer
    @snoozerBear
    No problem Mate! - Let us know if it works :)

Answers

  • SnoozerBearSnoozerBear Member Posts: 2
    wow ... thank for useful replay
    i'm not good at math but it looks help full :) thank you guys
Sign In or Register to comment.