Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
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")