How do I Make a Spawner for Enemies in my Game? I'm making my first zombie game in the Blender Game Engine. It is a first-person-shooter style game with zombies and stuff like that.

I am having trouble making an enemy spawner for the zombies however. I got it working somewhat before but after a certain amount of time the zombies just start to stack up on top of each other because I cannot get it to only spawn the zombies at the start of the game and after one dies. I changed it up some but now they don't spawn at all.

It really would be nice to have zombies spawn randomly within a specific area of the game but far away from the player. I don't know how to code in python so I'm making my game only with logic bricks. I have an empty currently that is supposed to spawn the zombies but it doesn't work.

Can you please help? You can download the game here: Undead Fields
As non-python solution I suggest following:


create an action with location keys. Each frame the action should contain a single spawn position. e.g frame 1 = position 1, frame 2 = position 2 ...
when you want to spawn an enemy 

2.a. create an random integer number in a property via random actuator.

2.b you play the action frame at the emitter (empty) via Action Actuator in property mode (using the random property).

2.c with a collision/ray/near/radar sensor check if the spawn point is empty. If so add an enemy and continue with 2. If not continue with 2.a