Hi, I’m attempting to make a simple space invaders clone, and its going pretty well so far, except that I ran into an issue where when I spawn in a missile/bullet from the player, the bullet seems to be linked to that of the player. I was wondering how I would possibly unlink them so that the bullet travels in a straight line independent of the player? Ive attached my scene setup and the code for both the player and the child below.
The add_child() call will add a child to the current object unless you specify another. What you probably want to do is make a Missiles Node2D hanging off the scene root, and then do Missiles.add_child(shot).