From 63999f408a7468dee07db9a67736da77bf2684dc Mon Sep 17 00:00:00 2001 From: VAILLANT Jeremy Date: Mon, 10 May 2021 14:57:01 +0200 Subject: [PATCH] hide loading when start game not with main scene --- scenes/Global.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenes/Global.gd b/scenes/Global.gd index 268d96b..fdb2abc 100644 --- a/scenes/Global.gd +++ b/scenes/Global.gd @@ -9,6 +9,8 @@ func _ready(): print("[global#_ready] get root scene") var root = get_tree().get_root() current_scene = root.get_child(root.get_child_count() - 1) + if current_scene.name != "Main": + get_node("/root/Loading").hide() func goto_scene(path): print("[global#goto_scene]")