diff --git a/scenes/world.tscn b/scenes/world.tscn index ccbb7f1..5752a2d 100644 --- a/scenes/world.tscn +++ b/scenes/world.tscn @@ -78,6 +78,7 @@ script = ExtResource("3_vkmt5") [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) +visible = false gizmo_extents = 1.38 script = ExtResource("3_vkmt5") @@ -108,6 +109,7 @@ script = ExtResource("3_vkmt5") [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) +visible = false gizmo_extents = 4.35 script = ExtResource("3_vkmt5") diff --git a/scripts/bunch_spawner.gd b/scripts/bunch_spawner.gd index bd9bfb6..c6f462d 100644 --- a/scripts/bunch_spawner.gd +++ b/scripts/bunch_spawner.gd @@ -14,6 +14,10 @@ var _aphid_scene := preload("res://scenes/units/aphid.tscn") var _honeydew_scene := preload("res://scenes/items/honeydew.tscn") func _ready() -> void: + if not visible: + return + + for i in _amount: var pos_offset := Vector3( randf_range(-gizmo_extents, gizmo_extents),