And I got an error. The solution might be simple but I am not sure whats going on…
I get an error for this code [ get_node(“Button”) ]. The button is a child of Panel.
func _ready():
get_node(“Button”).connect(“pressed”,self,“_on_button_pressed”)
[# Called every time the node is added to the scene.
# Initialization here ]
After I got this to work, I realized the answer was on that tutorial page. I am just not sure what these things are used for… But i left them there since its part of the tutorial.
[# Called every time the node is added to the scene.
# Initialization here ]
# member variables here, example:
[# var a=2]
[# var b=“textvar”]