how do i connect a button (the start game buttton) to the separate scene where i actually have the game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tuduracell

im trying to make a start button for my game and i can’t find where i connect the button and the scene

:bust_in_silhouette: Reply From: dancaer69

You want to use this button to change to the game’s scene?
Then, you can use the editor(the Node tab) to connect the “on_pressed” signal of the button. This will create a function and there you can change to the other scene by:

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