I have a player character scene which contains a node2d with my gun sprite and other related node2ds. This gun node is scripted to rotate to look at the mouse. The node2d also has a node with a script to fire bullets, and fires bullets normally (enough), but once fired they are still affected by the rotation of the gun, and go wherever the mouse is pointing. I've read the Instancing with Signals page on the docs that explains how to fix this, but it didn't work for me. Namely, the bullets don't seem to retain the information about their velocity and angle, and just shoot straight to the side no matter what. Is this because the "player" that they use in the Docs is the root node, and my gun is a child of the root?(my player character). I don't know. Is there a way to have my gun node signal the World2d node that my player scene is instanced within so that the world can instance the bullets?
To make matters worse, when I fire bullets, they are affected by the velocity of my player, going faster when I move right, and slower when I move left.
I am in quite the pickle. Thanks in advance.