Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | xemega |
Hey,
Before i ask, i look around of an answer but nothing fits my situation, and since i am new to GDScript and Godot in general i dont know what to do.
Here is my world scene structure:
- World
– player
— gun ( has script )
so gun is a child of player , in gun script i instance bullets scene which has the following structure:
- bullet ( and this has a script )
-sprite
-particles2d
Now what i want to do is get the player node position from bullets script. I tried everything but couldnt really find a way to do it.