Files
imnotsick/Scenes/UI/fading_mask.gd
T
2026-03-01 14:10:51 +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()