summaryrefslogtreecommitdiff
path: root/Stages/Spawn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-10-03 12:51:49 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-10-03 12:51:49 +0200
commit5442988a8ccecb9c323fc98557391a15ff245b87 (patch)
tree1864a03602291e2c495a8846b80ec90414060f61 /Stages/Spawn
parentc8bd14d6feeca72fc96b895c9382ebc16a1caf55 (diff)
next commit
Diffstat (limited to 'Stages/Spawn')
-rw-r--r--Stages/Spawn/spawn.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stages/Spawn/spawn.gd b/Stages/Spawn/spawn.gd
index fd7309a..0189632 100644
--- a/Stages/Spawn/spawn.gd
+++ b/Stages/Spawn/spawn.gd
@@ -16,7 +16,7 @@ func _ready() -> void:
$AnimatedSprite.play("default")
$AnimatedSprite.animation_finished.connect(func():
- _on_spawn_timer_timeout()
+ #_on_spawn_timer_timeout()
$SpawnTimer.start()
)
@@ -28,5 +28,5 @@ func _on_spawn_timer_timeout() -> void:
get_tree().current_scene.add_child(unit)
spawned_count += 1
- if spawned_count == spawn_count:
+ if spawned_count >= spawn_count:
$SpawnTimer.stop()