blob: 933528e96014e5d90e01f593396e5ed3bcc5b820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
extends Control
func _ready():
global_variables.startup = true
$AnimationPlayer.play("splashscreen")
func _on_AnimationPlayer_animation_finished(_splashscreen):
change_scene_to_file()
func _input(event):
if event.is_action_pressed("escape"):
change_scene_to_file()
func change_scene_to_file():
# warning-ignore:return_value_discarded
get_tree().change_scene_to_file("res://scenes/mainmenu.tscn")
|