hide some spawners

This commit is contained in:
Teatov 2024-10-21 20:46:55 +10:00
parent b8ccd5bb36
commit cb39aae3fd
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,7 @@ script = ExtResource("3_vkmt5")
[node name="AphidsBunch2" type="Marker3D" parent="Bunches/Aphids"] [node name="AphidsBunch2" type="Marker3D" parent="Bunches/Aphids"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.0519, -1.90735e-06, -58.8914) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.0519, -1.90735e-06, -58.8914)
visible = false
gizmo_extents = 1.38 gizmo_extents = 1.38
script = ExtResource("3_vkmt5") script = ExtResource("3_vkmt5")
@ -108,6 +109,7 @@ script = ExtResource("3_vkmt5")
[node name="AphidsBunch8" type="Marker3D" parent="Bunches/Aphids"] [node name="AphidsBunch8" type="Marker3D" parent="Bunches/Aphids"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -53.994, 9.53674e-07, -41.5218) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -53.994, 9.53674e-07, -41.5218)
visible = false
gizmo_extents = 4.35 gizmo_extents = 4.35
script = ExtResource("3_vkmt5") script = ExtResource("3_vkmt5")

View File

@ -14,6 +14,10 @@ var _aphid_scene := preload("res://scenes/units/aphid.tscn")
var _honeydew_scene := preload("res://scenes/items/honeydew.tscn") var _honeydew_scene := preload("res://scenes/items/honeydew.tscn")
func _ready() -> void: func _ready() -> void:
if not visible:
return
for i in _amount: for i in _amount:
var pos_offset := Vector3( var pos_offset := Vector3(
randf_range(-gizmo_extents, gizmo_extents), randf_range(-gizmo_extents, gizmo_extents),