How do I spawn a different enemy after a certain kill count?

Get help using Construct 2

Post » Wed Sep 02, 2015 8:13 pm

I'm working on a shooter where enemy1 is randomly spawned on a layout (using a spSpawnPoint sprite). After the players kills about 10 enemy1, spSpwanPoint gets destroyed and spawnPoint2 start spawning a new type of object (enemy2). I've been searching in the forums for a solution but I can't seem to get the proper code to work. Any suggestions? Please see my code below. Thanks in advance.

Image
B
28
S
11
G
15
Posts: 47
Reputation: 9,533

Post » Wed Sep 02, 2015 8:29 pm

try:

Image
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Wed Sep 02, 2015 8:45 pm

korbaach wrote:try:

Image


Thank you so much! @korbaach This worked great. In addition, should I just add another else statement if I want to keep adding new enemies after certain kills? My plan is to spawn NEW enemies every 50 kills. Again, thank you. I appreciate your help!
B
28
S
11
G
15
Posts: 47
Reputation: 9,533

Post » Wed Sep 02, 2015 8:52 pm

You wouldn't use an Else statement if you wanted to add more waves of enemies. Just pick a condition for each enemy.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Wed Sep 02, 2015 9:07 pm

Tekniko wrote:You wouldn't use an Else statement if you wanted to add more waves of enemies. Just pick a condition for each enemy.


@Tekniko, Understood. Thank you! I finally got the hang of it.
B
28
S
11
G
15
Posts: 47
Reputation: 9,533


Return to How do I....?

Who is online

Users browsing this forum: Bootfit and 25 guests