summaryrefslogtreecommitdiff
path: root/scripts/splashscreen.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/splashscreen.gd')
-rw-r--r--scripts/splashscreen.gd9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/splashscreen.gd b/scripts/splashscreen.gd
index 22675a7..933528e 100644
--- a/scripts/splashscreen.gd
+++ b/scripts/splashscreen.gd
@@ -5,11 +5,12 @@ func _ready():
$AnimationPlayer.play("splashscreen")
func _on_AnimationPlayer_animation_finished(_splashscreen):
- change_scene()
+ change_scene_to_file()
func _input(event):
if event.is_action_pressed("escape"):
- change_scene()
+ change_scene_to_file()
-func change_scene():
- get_tree().change_scene("res://scenes/mainmenu.tscn")
+func change_scene_to_file():
+ # warning-ignore:return_value_discarded
+ get_tree().change_scene_to_file("res://scenes/mainmenu.tscn")