Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!