Page 1 of 1
NPC generator
Posted: Tue Jan 07, 2014 9:00 pm
by mario610
is there any way to limit how many can an NPC generator can generate at a time?
Re: NPC generator
Posted: Tue Jan 07, 2014 10:23 pm
by FallingSnow
You could put the generator on a layer and hide the layer after X generations of NPCs have generated (via math).
Re: NPC generator
Posted: Tue Jan 07, 2014 11:34 pm
by FanofSMBX
I think he means that he wants, say, only 3 spinies to be able to be out of a pipe at once, then after you defeat one or more of the spinies, more would come out and so on. IDK if that would be possible.
Re: NPC generator
Posted: Wed Jan 08, 2014 12:13 am
by FallingSnow
If that's the case, it gets a bit more complicated.
A) You need an event that hides the spawner after the time it takes to spawn three enemies.
B) You need an event to show the spawner.
C) You need an event to hide the spawner after the time it takes to spawn one enemy.
Have A start by itself. Have B activate upon the death of an enemy. Have C activate a time after B has occurred via the events window.