Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | AntiBOT |
I made this code:
extends Button
func _pressed():
get_tree().change_Scene("res://main.tscn")
And when i was testing it, the game dont open and the console show this message:
Invalid call. Nonexistent function 'change_Scene' in base 'SceneTree'
Is there a way to fix it? I am new to godot, i dont know how to code some things.