From c64a7aee5dc0d6ca8ae7d61c6be54c5255952ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCbner?= Date: Fri, 21 Sep 2018 20:25:05 +0200 Subject: [PATCH] go back to menu for now --- dialog/first_scene.txt | 1 + game.gd | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dialog/first_scene.txt b/dialog/first_scene.txt index 2ab5540..4ccd176 100644 --- a/dialog/first_scene.txt +++ b/dialog/first_scene.txt @@ -1 +1,2 @@ ... Looking around, it definitely wasn't time to get up just yet. +> SWITCH_SCENE [MAIN_MENU] diff --git a/game.gd b/game.gd index 1ea72bf..f93638d 100644 --- a/game.gd +++ b/game.gd @@ -99,7 +99,8 @@ func switch_scene_to(scene_path): yield(transition, "on_transition_time") SceneSwitcher.goto_scene(scene_path) yield(transition, "on_transition_completed") - SceneSwitcher.current_scene.on_scene_start() + if SceneSwitcher.current_scene.has_method("on_scene_start"): + SceneSwitcher.current_scene.on_scene_start() func _ready(): pass \ No newline at end of file