mlpcardgame/Scenes/Loading/LoadingScreen.gd
2019-06-01 17:38:26 +02:00

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