Files
aarpg/gui/scene_transition/scene_transition.gd
Andriy Yednarovych e877c5f058 init
2026-02-22 19:26:26 +01:00

16 lines
329 B
GDScript

extends CanvasLayer
@onready var animation_player: AnimationPlayer = $Control/AnimationPlayer
func fade_out() -> bool:
animation_player.play("fade_out")
await animation_player.animation_finished
return true
func fade_in() -> bool:
animation_player.play("fade_in")
await animation_player.animation_finished
return true