mlpcardgame/Scenes/Loading/LoadingScreen.gd

13 lines
219 B
GDScript3
Raw Normal View History

2019-06-01 15:38:26 +00:00
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