Gun isn't aiming right

I’m trying to make a platformer shoot-em-up game, but I’m having some trouble doing so. I’ve noticed that that only way that i can get the mouses locations is through the onMouseMove function (I think), which is causing a lot of problems. When I try and fire the gun while walking without moving the mouse, the aiming goes all wonky and the bullets fire in weird directions. How can i fix this? Here is the game: https://flowlab.io/games/play/2547244

The game is private, so we can’t see the game.

Though it sounds like the aiming needs to be Mouse Position + Screen Position so it works while moving

1 Like