I have scenes A, B and C.
A is the main scene, and scenes B and C are just instanciated in it.
In scene B I have this script:
signal sploosh
func _ready():
if Input.is_action_pressed("Splash"):
emit_signal("sploosh")
And in scene C I have this script:
func _ready():
get_parent().get_node("SceneB").connect("sploosh", self, "asd")
func asd():
print("yay")
But it still is not working as it should. Do I use some deprecated stuff or something?
With print(get_parent().get_node("SceneB").get_signal_list())
from Scene C I can see the sploosh signal though. Signals have been the toughest part to learn for some reason to me.