Add a "hidden in editor" group that causes all nodes in that group to be shown when the level loads.
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
1 parent
457c6df5c0
commit
d1fb937a93
3 files changed
+20
-2
No files matched your search
@@ -33,6 +33,12 @@ func _ready() -> void:
|
|||||||
spawn_point = position
|
spawn_point = position
|
||||||
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
|
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
|
||||||
give_objective("sarc", 0, "Open the Sarcophagus")
|
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)
|
#%Dialogue.show_text("Hello world!").dismiss_after(2)
|
||||||
|
|
||||||
func refresh_dash(new_dashes):
|
func refresh_dash(new_dashes):
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ window/stretch/mode="canvas_items"
|
|||||||
[global_group]
|
[global_group]
|
||||||
|
|
||||||
Hidden=""
|
Hidden=""
|
||||||
|
"Hidden in editor"=""
|
||||||
|
|
||||||
[gui]
|
[gui]
|
||||||
|
|
||||||
|
|||||||
+13
-2
@@ -41,8 +41,9 @@
|
|||||||
process_mode = 1
|
process_mode = 1
|
||||||
scale = Vector2(1, 1.0155824)
|
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
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
position = Vector2(-4833.9995, 356.4457)
|
position = Vector2(-4833.9995, 356.4457)
|
||||||
rotation = 0.0005533503
|
rotation = 0.0005533503
|
||||||
safe_margin = 0.08
|
safe_margin = 0.08
|
||||||
@@ -443,7 +444,7 @@ position = Vector2(1368, 401)
|
|||||||
[node name="LongBlock11" parent="Tutorial" unique_id=1016724328 instance=ExtResource("6_dwbse")]
|
[node name="LongBlock11" parent="Tutorial" unique_id=1016724328 instance=ExtResource("6_dwbse")]
|
||||||
position = Vector2(1149, 629.44025)
|
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
|
visible = false
|
||||||
|
|
||||||
[node name="RichTextLabel2" type="RichTextLabel" parent="CanvasLayer" unique_id=1254950785]
|
[node name="RichTextLabel2" type="RichTextLabel" parent="CanvasLayer" unique_id=1254950785]
|
||||||
@@ -1354,6 +1355,8 @@ position = Vector2(-4866, 311.15155)
|
|||||||
position = Vector2(-5189, 322.96738)
|
position = Vector2(-5189, 322.96738)
|
||||||
|
|
||||||
[node name="HiddenHorizontalMovingBlock" parent="." unique_id=821525141 instance=ExtResource("35_6ah6f")]
|
[node name="HiddenHorizontalMovingBlock" parent="." unique_id=821525141 instance=ExtResource("35_6ah6f")]
|
||||||
|
visible = false
|
||||||
|
modulate = Color(1, 1, 1, 1)
|
||||||
position = Vector2(-5294, 414.54047)
|
position = Vector2(-5294, 414.54047)
|
||||||
|
|
||||||
[node name="QuadrantC" type="Node2D" parent="." unique_id=1197446130]
|
[node name="QuadrantC" type="Node2D" parent="." unique_id=1197446130]
|
||||||
@@ -2305,15 +2308,23 @@ position = Vector2(-71, -450.97263)
|
|||||||
disk_num = 3
|
disk_num = 3
|
||||||
|
|
||||||
[node name="HiddenHorizontalMovingBlock" parent="QuadrantC" unique_id=521432634 instance=ExtResource("35_6ah6f")]
|
[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)
|
position = Vector2(-720, -912.7766)
|
||||||
|
|
||||||
[node name="HiddenHorizontalMovingBlock2" parent="QuadrantC" unique_id=406601912 instance=ExtResource("35_6ah6f")]
|
[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)
|
position = Vector2(-481, -477.55835)
|
||||||
|
|
||||||
[node name="HiddenHorizontalMovingBlock3" parent="QuadrantC" unique_id=525687146 instance=ExtResource("35_6ah6f")]
|
[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)
|
position = Vector2(-619, -477.55838)
|
||||||
|
|
||||||
[node name="HiddenHorizontalMovingBlock4" parent="QuadrantC" unique_id=1059738582 instance=ExtResource("35_6ah6f")]
|
[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)
|
position = Vector2(-367, -477.55832)
|
||||||
|
|
||||||
[node name="HiddenTeleporter" parent="QuadrantC" unique_id=1585223156 instance=ExtResource("36_g1i3r")]
|
[node name="HiddenTeleporter" parent="QuadrantC" unique_id=1585223156 instance=ExtResource("36_g1i3r")]
|
||||||
|
|||||||
Reference in new issue
Block a user