Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rseonp |
I’m adding more features to the “Your First Game”. Currently I’m trying to increase the score when a bullet collides with a creep.
My initial attempt was to emit a custom signal from within the Bullet scene and then connect that to a function inside the Main scene. Almost none of the signals are detected (it did seem to detect once in a while, is that a bug?), so I concluded that it’s because the bullets don’t exist initially.
I currently am exporting the Bullet PackedScene into the Player scene.
Do you need to set up a listener for each Bullet child instance (is that possible)? Or is there just a flaw in my structuring?