mlpcardgame/Scenes/Scripts/SplashScreen.gd
2019-07-03 22:22:55 +02:00

14 lines
No EOL
283 B
GDScript

extends Control
var timeout = 1.0
func _ready():
# Stupid hack for seamless transition
get_tree().get_root().call_deferred("move_child", self, 0)
func _process(delta):
timeout -= delta
if timeout <= 0:
Loader.load_scene("res://Scenes/TitleScreen.tscn")
set_process(false)