#Noob needs help tracking position of spawned Asteroid
1 messages · Page 1 of 1 (latest)
From the rock scene can I export it's global_position for use in my function in main?
I don't think that you need that, based on what you shared. Your Rock Scene should react to being hit by a rocket and then trigger Score Board update (maybe by emitting Signal on Eventbus) and then spawn N Midrocks on it's current global_position
global_position is available to all Node2D Decendents
And it goes without saying Midrock would be responsible for reacting to rocket hit and then trigger Score Board update and spawn N Smallrocks on it's current global_position
If rocks have a moving, you can also provide an random direction when creating it, so they fly off
Yeah the global position of random speed and direction were handled inside the rock script( and midrock etc.) accessing that from Main is proving to be what is the giant confusion for me
Sounds like you have a path forward, feel free to ping me incase another question arises