mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 12:44:20 +00:00
🐞 Fixed spawner only spawning to bottom part
This commit is contained in:
parent
2f457d7eb5
commit
1f4c3734c7
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue