How do I stop from spawning

Get help using Construct 2

Post » Thu Jul 09, 2015 5:42 pm

Hi,

So I think I can figure out how to use a counter for how many spawns but I'm not sure to how I can make it stop after 10.

Let say I have an enemy spawns one at a time and I would want it to stop spawning when it hits 10. What action do I need to use to do this?

Thank You.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Thu Jul 09, 2015 5:47 pm

Add an extra condition. Compare two values, and fill in enemies.count at the first value. Then less than, then 10

Image
Last edited by Tikhemdaan on Thu Jul 09, 2015 5:58 pm, edited 1 time in total.
B
3
Posts: 6
Reputation: 187

Post » Thu Jul 09, 2015 5:57 pm

Make an event as follows:
Every 1.0 seconds >>> spawn enemy
Enemy.count < 10
B
6
Posts: 38
Reputation: 338

Post » Thu Jul 09, 2015 5:59 pm

Hi,

Once the condition is met how do I exit the spawn loop?

Thank You.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Thu Jul 09, 2015 6:09 pm

It's written right there, it says: enemy.count < 10. It means that when the number of enemys created is equal or greater then 10 it stops spawning.
B
6
Posts: 38
Reputation: 338

Post » Fri Jul 10, 2015 2:51 am

Oops I over-saw it. Thank You. It worked great.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Fri Jul 10, 2015 11:01 am

You're welcome...
B
6
Posts: 38
Reputation: 338


Return to How do I....?

Who is online

Users browsing this forum: Twili, Yahoo [Bot] and 1 guest