Début du dialogue_screens

This commit is contained in:
Maurane
2025-06-06 17:29:14 +02:00
parent ca30842314
commit 16221a9e33
10 changed files with 121 additions and 43 deletions
+5 -4
View File
@@ -55,20 +55,21 @@ func _on_new_game_pressed():
var text_container = $TextScreens/MarginContainer/IntroBoxContainer/TextContainer
transition("big", [$TitleScreen], [$TextScreens, text_container.get_child(0)])
await $TextScreens.on_transition_finished
await $TextScreens.next_slide
for i in 4:
transition("small", [text_container.get_child(i)], [text_container.get_child(i+1)])
await $TextScreens.on_transition_finished
await $TextScreens.next_slide
transition("big", [$TextScreens, text_container.get_child(4)], [$Office])
await $TextScreens.next_slide
# Takes care of fading transitions between scenes
func transition(size, scenes_to_hide, scenes_to_show):
TransitionScreen.transition(size)
await TransitionScreen.on_fading_finished
await TransitionScreen.fading_finished
for scene in scenes_to_hide:
scene.hide()