Shoot towards Mouse

AwesomePassword

  • Posts: 104
The idea is to have a character, and when you click the mouse, he shoots out a bullet aiming at the mouse. It works fine..until you start adding scrolling. When you make the level big and have the camera follow the player, the code goes all wacky. That is to say, the bullet doesn't shoot in the right direction anymore.

That's my code.
Help.
~Password
===
Games:
-Tetra Factory - 80%

rob1221

  • *
  • Posts: 9472
Try adding the X and Y of the camera to the X and Y of the mouse.