Please help! I keep getting this error message when I run my code for a title page for my game! I'm quite new to Godot. Here's the scene tree:
TitleScreen - Control Node
- ColorRect - ColorRect Node
- Menu - VBoxContainer Node
- Label - Label Node
- Buttons - VBoxContainer Node
- PlayButton - Button Node
- QuitButton - Button Node
- Fade - ColorRect
Here is the GDScript code connected to both the PlayButton and the QuitButton:
extends Button
export(String) var scene_to_load
export(bool) var quit
func _ready():
for button in $Menu/Buttons.get_children():
button.connect("pressed", self, "_on_button_pressed", [button.scene_to_load])
func _on_button_pressed():
get_tree().change_scene(scene_to_load)
When I run said Scene I get:
get_node: Node not Found: Menu/Buttons
Any Help would be appreciated :)
Thank you for your help with solving my problem! My Title Screen After being fixed :)
My game Game