change_emotion

This commit is contained in:
Maurane
2025-06-11 15:58:56 +02:00
parent 9b35d6ed82
commit 22caef38fc
20 changed files with 201 additions and 294 deletions
+15 -1
View File
@@ -33,7 +33,7 @@ func _on_animation_finished(anim_name):
#Handles fading transitions
func transition(size):
func fading(size):
Globals.is_transitioning = true
@@ -43,4 +43,18 @@ func transition(size):
elif size == "small":
small_fading.visible = true
small_animation.play("fade_to_black")
#Transitions the scenes
func transition(fading_screen_size, scenes_to_hide, scenes_to_show):
fading(fading_screen_size)
await self.fading_finished
for scene in scenes_to_hide:
scene.hide()
for scene in scenes_to_show:
scene.show()