Why are my projectiles appearing offset from my enemy?

Godot Version

4.3

Question

Hi, pretty new to all this and can’t figure out what I’m doing wrong here. I have and enemy with a follow state and an attack state, when he goes in the attack state he fires projectiles from a Marker 2d towards the player, but in game the projectiles are appearing about 20 pxs offset from where the marker is placed in the enemy scene, scratching me head about this for a while now. Can’t tell if it’s my code or maybe I have some setting wrong in the inspector on the projectile or enemy scene. Thanks for anyone who can help I’m stumped.

here is the code for my enemy attack, including the position logic for the projectile:

here is the projectile code:

and here is the code for the level

here’s my scene setups


I solved this myself if anyone has similar issue the projectile just needed to be set as “top level” duhhhh me