I’m playing with top down shooter game mechanics and I’ve stumbled across a problem.
The fire button in the bullet class always positions the bullet at the center of the player sprite, when the gun is offset to the right and front.
How can I get the bullets to come from the gun position rather than the sprite center? The player sprite rotates which makes it harder.
Thanks.
Edit: The player sprite is from an atlas I created in texture packer. I tried to change the pivot point and use that to position the bullets and then simply override the pivot point in Phaser when it comes to positioning but to no avail.