So I use this event to spawn enemies, what will be the simplest and easiest way to limit the number of enemies spawned?
<img src="https://dl.dropboxusercontent.com/u/60595907/1.jpg" border="0" />
With a loop.
to (number of enemies you want to spawn) > Spawn Walker.
You can use the random expression in the second parameter if you are doing waves of enemies and want them to be varied and not always the same number.
I am also wanting another to spawn if I get under that set number so if one gets killed, another will replace it. In your example above, would that be using the "for each (ordered)" condition?
Simply add another condition to your spawning code that says
Compare 2 values -> Enemies.count < 20
Thus it will only spawn enemies if the total amount of enemies active are less than 20.
glad I found this post...
Develop games in your browser. Powerful, performant & highly capable.
justifun Thanks! Simple and perfect!