mlpcardgame/Scenes/Scripts/SplashScreen.gd

14 lines
277 B
GDScript3
Raw 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:
Loader.load_scene("res://Scenes/Lobby.tscn")
set_process(false)