13 lines
No EOL
219 B
GDScript
13 lines
No EOL
219 B
GDScript
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 |