how i make a circle or object rotate with my finger?

guillefaceguilleface Member Posts: 1,014
edited April 2012 in Working with GS (Mac)
a similar example will be like those old phones that had a wheel with circles numbers, i want to touch a circle in one corner and with my finger make a circle and i want this actor to rotate following my finger. i try to constrain my circle rotation to mouse position x + y, but if don't work like i want.

Answers

  • pinata14pinata14 Member Posts: 150
    lol well constraining the rotation means an angle, so the coordinates dont work like that as you said. What you can do however, is say
    rotate to angle-(vectorToAngle(touch1.x-self.position.x,touch1.y-self position.y)) relative to actor
Sign In or Register to comment.