playMaker

Author Topic: 2d Rotation Towards Mouse Curser  (Read 1311 times)

Nathe2000

  • Playmaker Newbie
  • *
  • Posts: 1
2d Rotation Towards Mouse Curser
« on: December 06, 2014, 11:48:42 PM »
      I have been stuck with Playmaker for a couple days now. I am trying to make a 2d game and your character's gun aims at the mouse curser, basically having it rotate. I am using just sprite and the camera is aming at the x and y axis (for easy use with rigid bodies).

      What I want to happen is the gun to point towards the curser, almost exactly like how Terraria does it.

Please help.

(If you need more specifics I would be happy to provide some more.)