It is about making game with button, but I want to make some variations about how the buttons being played using signal. In his tutorial, he use this code
I don’t quite understand what you want to accomplish with preload(“res://scenes/world.tscn”).
That’s a statement that practically say "preload the resource found under this path but dont save it to any variable and don’t do anything with it.
You usually find it outside of a function, for example like this var world = preload(“res://scenes/world.tscn”)
which will turn the path into a resource that you can .instantiate()
It is about making game with button, but I want to make some variations about how the buttons being played using signal.
Yan can do this before the scene is changed. What I believe is there is a play button and you want the play button to be pressed either by mouseclick or by a keyboard press (for example: Enter, Spacebar). You could maybe make use of InputEvents that checks on func _input() or inside func _process()