Hey, I'm new to Godot and I'm following this tutorial:

I have a button with a callback on click. "on_button_up()" and I wrote "get_tree().change_scene(path)" but somehow it doesn't work. What am I missing? I did exactly as the guy in the video did :|

Thanks

I had nightmares about that channel. If you are learning the basics, try heartbeast and and free yourself from your chains.

@agusmagne said: Hey, I'm new to Godot and I'm following this tutorial:

I have a button with a callback on click. "on_button_up()" and I wrote "get_tree().change_scene(path)" but somehow it doesn't work. What am I missing? I did exactly as the guy in the video did :|

Thanks

what is the error exactly? maybe it could be that the signal is not connected correctly or that the route is not valid

3 months later

Did you literally add add "path"? or is it a string containing the path to the file (eg: "res://Screens/EndScreen.tscn")?

It should look something like this (or you can replace the string with a variable containing the full path).

get_tree().change_scene("res://path/to/scene.tscn")
a year later