From d1fb937a9358004504c6089fadf052bae6518e76 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sun, 18 Oct 2026 19:56:00 -0500 Subject: [PATCH] Add a "hidden in editor" group that causes all nodes in that group to be shown when the level loads. --- player_2d.gd | 6 ++++++ project.godot | 1 + world.tscn | 15 +++++++++++++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/player_2d.gd b/player_2d.gd index 015d649..a40d53e 100644 --- a/player_2d.gd +++ b/player_2d.gd @@ -33,6 +33,12 @@ func _ready() -> void: spawn_point = position DisplayServer.window_set_title("JUMPS EQUALS JUMPS") give_objective("sarc", 0, "Open the Sarcophagus") + + for hidden_object in get_tree().get_nodes_in_group("Hidden in editor"): + hidden_object.show() + + for hidden_object in get_tree().get_nodes_in_group("Hidden"): + hidden_object.hide() #%Dialogue.show_text("Hello world!").dismiss_after(2) func refresh_dash(new_dashes): diff --git a/project.godot b/project.godot index 0b0b882..9531744 100644 --- a/project.godot +++ b/project.godot @@ -25,6 +25,7 @@ window/stretch/mode="canvas_items" [global_group] Hidden="" +"Hidden in editor"="" [gui] diff --git a/world.tscn b/world.tscn index 05df62f..508f8d6 100644 --- a/world.tscn +++ b/world.tscn @@ -41,8 +41,9 @@ process_mode = 1 scale = Vector2(1, 1.0155824) -[node name="Player2D" parent="." unique_id=889851478 instance=ExtResource("1_aqk2v")] +[node name="Player2D" parent="." unique_id=889851478 groups=["Hidden in editor"] instance=ExtResource("1_aqk2v")] unique_name_in_owner = true +visible = false position = Vector2(-4833.9995, 356.4457) rotation = 0.0005533503 safe_margin = 0.08 @@ -443,7 +444,7 @@ position = Vector2(1368, 401) [node name="LongBlock11" parent="Tutorial" unique_id=1016724328 instance=ExtResource("6_dwbse")] position = Vector2(1149, 629.44025) -[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1637221343] +[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1637221343 groups=["Hidden in editor"]] visible = false [node name="RichTextLabel2" type="RichTextLabel" parent="CanvasLayer" unique_id=1254950785] @@ -1354,6 +1355,8 @@ position = Vector2(-4866, 311.15155) position = Vector2(-5189, 322.96738) [node name="HiddenHorizontalMovingBlock" parent="." unique_id=821525141 instance=ExtResource("35_6ah6f")] +visible = false +modulate = Color(1, 1, 1, 1) position = Vector2(-5294, 414.54047) [node name="QuadrantC" type="Node2D" parent="." unique_id=1197446130] @@ -2305,15 +2308,23 @@ position = Vector2(-71, -450.97263) disk_num = 3 [node name="HiddenHorizontalMovingBlock" parent="QuadrantC" unique_id=521432634 instance=ExtResource("35_6ah6f")] +visible = false +modulate = Color(1, 1, 1, 1) position = Vector2(-720, -912.7766) [node name="HiddenHorizontalMovingBlock2" parent="QuadrantC" unique_id=406601912 instance=ExtResource("35_6ah6f")] +visible = false +modulate = Color(1, 1, 1, 1) position = Vector2(-481, -477.55835) [node name="HiddenHorizontalMovingBlock3" parent="QuadrantC" unique_id=525687146 instance=ExtResource("35_6ah6f")] +visible = false +modulate = Color(1, 1, 1, 1) position = Vector2(-619, -477.55838) [node name="HiddenHorizontalMovingBlock4" parent="QuadrantC" unique_id=1059738582 instance=ExtResource("35_6ah6f")] +visible = false +modulate = Color(1, 1, 1, 1) position = Vector2(-367, -477.55832) [node name="HiddenTeleporter" parent="QuadrantC" unique_id=1585223156 instance=ExtResource("36_g1i3r")]