13 lines
219 B
GDScript3
13 lines
219 B
GDScript3
|
extends Control
|
||
|
|
||
|
var passed := 0.0
|
||
|
var once := true
|
||
|
|
||
|
func _ready():
|
||
|
$AnimationPlayer.play("fade_in")
|
||
|
|
||
|
func _process(delta):
|
||
|
passed += delta
|
||
|
if passed > 5.0 and once:
|
||
|
$AnimationPlayer.play("fade_out")
|
||
|
once = false
|