Godot Version
4.3
Question
hi,
i have a parent node, which spawns a player child on a grid on ready. the player sends a signal and grid grabs it. but it seems like my grid never listen to the signal.
setup:
parent (spawns child player)
- grid (needs signal)
ā player (spawned, sends signal)
parent:
var player_scene = preload("res://Scenes/Player.tscn").instantiate()
func _ready():
grid.add_child(player_scene )
grid:
func _ready():
player.connect("my_signal", other_function)
player:
signal my_signal
some_function():
emit_signal("my_signal")
i know, grid tries to connect the signal before the player is loaded.
how can i fix that?