How do I do these enemy waves

Get help using Construct 2

Post » Fri Mar 13, 2015 9:13 am

For example: Wave 1 begins where 10 enemies spawn and when you kill all enemies a button appears asking to begin wave 2 and when you clikc on the begin wave 2 button 15 enemies spawn but you have the same ammo, health etc...
B
4
Posts: 14
Reputation: 228

Post » Fri Mar 13, 2015 9:25 am

@88U
1. spawn current wave:
- store current wave number in one variable and have function that will check which wave is active and spawn enemies accordingly

2. check if current wave is killed:
- you can do it by putting all enemies into one big family and check how many instances of enemy are available, when that number is zero go to point 3.

3. add 1 to your wave variable and then go to 1.

Very general answer for very general question ;)
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Fri Mar 13, 2015 4:18 pm

Could you provide a capx example? you lost me at the Enemy instance part.
B
4
Posts: 14
Reputation: 228

Post » Fri Mar 13, 2015 5:15 pm

You cannot ask me to create whole game for you. Unless it is a business offer. ;)
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Fri Mar 13, 2015 5:54 pm

here you go
You do not have the required permissions to view the files attached to this post.
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Fri Mar 13, 2015 7:23 pm

razor i asked for an example not a full out game, and fldr thank you it worked but is it possible for me to spawn for example 10 bricks instead of one?
B
4
Posts: 14
Reputation: 228

Post » Sat Mar 14, 2015 3:19 pm

sure, just set the end of the loop to something like 5+wave*5, that would give you 10 for first wave 15 for second and so on
B
38
S
11
G
5
Posts: 485
Reputation: 5,340


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests