You could use the 'Rotate to Position' Behavior. Then you can put the x and y coordinates of the position you want it to rotate/point to (like mouse.position.X and mouse.position.y).
Rotate to Position will do that. (But you would need to put it inside a timer that fires 20 to 30 times a second.)
The other way is to use a constrain attribute behavior: Constrain Attribute: self.Rotation To: VectorToAngle(vectorToAngle(game.Mouse.Position.X-self.Position.X, game.Mouse.Position.Y-self.Position.Y)
You build the expression in the expression editor using the drop down menus. (You can't simply copy and paste that expression.)
Comments
When touch is pressed.
Behaviour - Rotate.
Simple
Hope this helps!
RThurman
The other way is to use a constrain attribute behavior:
Constrain Attribute: self.Rotation To: VectorToAngle(vectorToAngle(game.Mouse.Position.X-self.Position.X, game.Mouse.Position.Y-self.Position.Y)
You build the expression in the expression editor using the drop down menus. (You can't simply copy and paste that expression.)
Hope this helps!
RThurman