change_emotion
This commit is contained in:
+15
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user