GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Rotating actor according to mouse movement

Hello everybody, I'm new here and with GameSalad forum, so excuse me if I'm posting in the wrong place.

Created an actor, like an arrow in the game Angry Birds. This actor rotates according to the angle of the mouse. However, I can not apply these properties of rotation.

Added a behavior RotateToAngle this actor with the formula VectorToAngle (game.Mouse.position.x - self.position.x, game.Mouse.position.y - self.position.y), but it does not work. I think this reasoning is right.

Can you help me?

Files in http://www.sendspace.com/file/mugnza

Comments

This discussion has been closed.