Actor point towards mouse

jobonoobdudejobonoobdude Member Posts: 152
edited November -1 in Working with GS (Mac)
Hey guys,

I know its been discussed before, but I cant find the solution, and the how-to link is a dud. How do you get an actor to point towards the mouse?
Thanks!
-Jobo

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    constrain the actors self rotation to

    vectorToAngle(self.position.x-mouse.position.x,self.position.y-mouse.position.y)
  • jobonoobdudejobonoobdude Member Posts: 152
    Ahh, that makes sense :)
    thanks!
Sign In or Register to comment.