Rotation help

jamo777jamo777 Member Posts: 2
edited November -1 in Working with GS (Mac)
I am trying to get my actor (the arm of a standing character) to rotate along with my touch. I have done:
when touch is pressed constrain attribute self.Position to vectorToAngle( self.Position.X - game.Touches.Touch 1.X , self.Position.Y - game.Touches.Touch 1.Y ).
This works well, except when i touch the arm it immediately snaps 90 degrees counterclockwise and then allows me to drag it. I would like to be able to rotate it with my finger at least 90 degrees without the actor jumping 90 degrees for me.Any help would be appreciated... as i am new to Gamesalad.

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Constrain "self.Rotation" instead of "self.Position". That should do it!
Sign In or Register to comment.