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(): get_tree().change_scene_to_file("res://scenes/mainmenu.tscn")