Hi,
Im new to Phaser and trying to build a 2d multiplayer shooting game. Im using Phaser3 Weapon Plugin and I want the player to be able to aim with the mouse. So when the player presses the mouse the shoot is going to land where the pointer is (if possible due to gravity).
My problem is that Im using a tilemap so my scene is bigger then what the player sees and it seems as if this.weapon.fireAtPointer(); is calculated based on the size of scene and not of what Im viewing. All shoots are going way over the cursor point, but probably landing on the cursor Y at the end of scen. I have 500 gravity on the game so I try to balance the gravity on the bullets by doing this.weapon.bulletGravity.y = -500;
Is there a way to have the shoots going through the cursor?
Let me know if I need to clarify I can understand if it wasnt cristal clear