summaryrefslogtreecommitdiff
path: root/scripts/splashscreen.gd
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-04-30 18:51:05 -0600
committerLogan <logan@cflip.net>2023-04-30 18:51:05 -0600
commitf4381c59c1d239400fbd787fe3a5247f0c535460 (patch)
tree8dfc62aaf276e7f8438e96fec4467bcde917d286 /scripts/splashscreen.gd
parentf30fbd753b23be1f71b4bada5e7063ac00215c33 (diff)
Move to Godot 4 and fixes
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")