this video: https://www.youtube.com/watch?v=sKuM5AzK-uA at 30:18
the code
var scene_path_to_load
func _ready():
for button in $Menu/CenterRow/Buttons.get_children():
button.connect("pressed", self, "_on_Button_pressed", [button.scene_to_load])
func _on_Button_pressed(scene_to_load):
scene_to_load = scene_path_to_load
$FadeIn.show()
$FadeIn.fade_in()
func _on_FadeIn_fade_finished():
get_tree().change_scene(scene_path_to_load)
In this complete tutorial you'll create a game's title menu that supports mouse, touch and keyboard input. With a fade-to-black transition!
Intermediate Godot 3 course: https://gdquest.mavenseed.com/courses
Beginner Godot 3 course on Udemy: http://bit.ly/guis-godot-course
Download the project: http://bit.ly/godot-3-title-screen-demo
Find all ou...