Godot Version
4.2.2
Question
How do you send a custom signal to all scenes that use the same script that the signal originated from?
in short, I have a small area where bombs will slowly spawn over time. when one bomb explodes, all the bombs will explode. all the bombs run on the same script.
signal differentBombExploded
func _explode():
get_parent().Game_over()
differentBombExploded.emit()
func _on_different_bomb_exploded():
print("explode")
no matter how many bombs are on the screen only the bomb that ran differentBombExploded.emit() will run func _on_different_bomb_exploded():
what am I missing here?