mlpcardgame/Scenes/Scripts/SplashScreen.gd

14 lines
283 B
GDScript3
Raw Permalink Normal View History

2019-06-01 21:52:16 +00:00
extends Control
var timeout = 1.0
2019-06-01 21:52:16 +00:00
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:
2019-07-03 20:22:55 +00:00
Loader.load_scene("res://Scenes/TitleScreen.tscn")
set_process(false)