I'm building breakout. So i have multiple balls that can spawn/instance.
I want to send a signal from the ball, when it's time to remove a brick. The problem is, there are multiple ball instances and each with different names.
In ball.gd I use emit_signal("destroyBrick")
So in the brick.gd
file, if I try and use: ball.connect("destroyBrick", self, "destroyThisBrick")
it won't work as ball
changes its name each time it's added to the scene.
Does anyone know how to use a signal when the receiving node doesn't know the name of the emitting node?