From 1f4c3734c79b4c7cb63959914c3716d9a4aa0caa Mon Sep 17 00:00:00 2001 From: Cookie-CHR Date: Sun, 3 Apr 2022 16:25:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fixed=20spawner=20only=20spawnin?= =?UTF-8?q?g=20to=20bottom=20part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/behaviours/EnemySpawn.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/behaviours/EnemySpawn.gd b/src/entities/behaviours/EnemySpawn.gd index 4db4962..91fb264 100644 --- a/src/entities/behaviours/EnemySpawn.gd +++ b/src/entities/behaviours/EnemySpawn.gd @@ -26,8 +26,8 @@ func _on_Timer_timeout(): var random = rng.randi_range(1, 4) if random == 1: position = Vector2(0, rng.randf_range(0, 640)) - elif random == 1: position = Vector2(1280, rng.randf_range(0, 640)) - elif random == 1: position = Vector2(rng.randf_range(0, 1280), 0) + elif random == 2: position = Vector2(1280, rng.randf_range(0, 640)) + elif random == 3: position = Vector2(rng.randf_range(0, 1280), 0) else: position = Vector2(rng.randf_range(0, 640), 640) new_enemy.set_position(position)