Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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.
Develop games in your browser. Powerful, performant & highly capable.
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...
justifun Thanks! Simple and perfect!