Files
imnotsick/Scenes/transition_screen/fading_mask.gd
T
2026-02-27 16:29:12 +01:00

23 lines
356 B
GDScript

extends ColorRect
@onready var animation = $FadingMaskAnimation
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
hide()
#Handles fading transitions
func fade_in():
modulate.a = 0.0
show()
animation.play("fade_in")
func fade_out():
animation.play("fade_out")
await animation.animation_finished
hide()