I have a scene that is a button. If you click on it an instance of that scene (button) is added to that scene. So there are 2 buttons now. Pressing the 1 button creates more buttons. But pressing the instantiated buttons does nothing. What could be the problem? Something related to how signals are connected maybe?
The button's "pressed" signal is connected to the button's script.
func _on_button_pressed():
var child = preload("res://button.tscn").instantiate()
add_child(child)
X.children += 1 // global var to add buttons lower
child.position = Vector2 (0,40*X.children)