1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 04:34:19 +00:00

🐞 Fixed spawner only spawning to bottom part

This commit is contained in:
Cookie-CHR 2022-04-03 16:25:36 +02:00
parent 2f457d7eb5
commit 1f4c3734c7

View file

@ -26,8 +26,8 @@ func _on_Timer_timeout():
var random = rng.randi_range(1, 4) var random = rng.randi_range(1, 4)
if random == 1: position = Vector2(0, rng.randf_range(0, 640)) if random == 1: position = Vector2(0, rng.randf_range(0, 640))
elif random == 1: position = Vector2(1280, rng.randf_range(0, 640)) elif random == 2: position = Vector2(1280, rng.randf_range(0, 640))
elif random == 1: position = Vector2(rng.randf_range(0, 1280), 0) elif random == 3: position = Vector2(rng.randf_range(0, 1280), 0)
else: position = Vector2(rng.randf_range(0, 640), 640) else: position = Vector2(rng.randf_range(0, 640), 640)
new_enemy.set_position(position) new_enemy.set_position(position)