How to spawn multiple actors

I need my game to spawn multiple actors in a short period of time.

Problem:
The spawner only spawns one enemy no matter what amount it's told to spawn.

Rules:
I have a gameEngine actor that controls the wave time and enemy amount.
----- If gameState = 2 then (gameState 2 = wave in progress)
---------- if enemiesSpawned >= enemiesThisWave then
--------------- Spawn Actor: enemy | In direction: random(0,359) | at (0,0) relative to: actor
--------------- Change attribute enemiesSpawned to enemiesSpawned+1

Shouldn't that loop until all the enemies are spawned?

Comments

Sign In or Register to comment.