Added music fade in and out

This commit is contained in:
2024-05-12 21:35:40 +01:00
parent 9a7484a687
commit ec532ecb2e
7 changed files with 43 additions and 23 deletions

View File

@@ -30,7 +30,8 @@ func _on_sub_viewport_container_scroll_finished() -> void:
tween.finished.connect(_wait_load_intro)
func _wait_load_intro() -> void:
Music.fade_down(3)
get_tree().create_timer(3).timeout.connect(_load_intro)
func _load_intro() -> void:
get_tree().change_scene_to_file("res://Intro.tscn")
get_tree().change_scene_to_file("res://Intro.tscn")