Spawner System

Get help using Construct 2

Post » Thu May 30, 2013 7:23 pm

Hello everyone!

I'm really new at Construct and I'm trying to develop my first game in it. It's plataform shooter where you must kill zombies to survive in a very small scenario.

I want to make a wave spawner system which for each wave it add one more zombie than it has spawned before.

I've searched for topics about "Wave System" but none of them given me something like this. All the topics say about generate wave by time or clicking.

I'm using Construct Free Edition and for this reason I need something "small".

Anyone has an idea or an alternative or a solution?
Posts: 8
Reputation: 191

Post » Thu May 30, 2013 7:47 pm

Something like
When all zombies are dead
.. Spawn a new wave of zombies that is 1 bigger than last one

It would translate to C2 events like this:

global variable : Zombies = 10

zombie.count = 0
trigger once while true
.. Add 1 to zombies
.. repeat Zombies times
... create zombie at random(x),random(y)
Posts: 756
Reputation: 7,302

Post » Thu May 30, 2013 8:57 pm

Uh. You gave me an idea then I've tried this:

but obviously it doesn't work.

As you can see, I have 2 sprites for zombies then I have a zombie spawner.supaiku2013-05-30 21:09:32
Posts: 8
Reputation: 191

Post » Thu May 30, 2013 10:14 pm

System ZombieNumber=0 ---->Add 1 to WaveNumber
                      ---->Set Zombienumber to Wavenumber

System Zombienumber>0
        System-->Pick random spawner
              Spawner ---->Spawn Zombie
              System ---->Subtract 1 from Zombienumber

I *think* this would work. Not sure if you want that "trigger once" at all, let alone as a sub-event.
Posts: 24
Reputation: 1,009

Post » Thu May 30, 2013 10:57 pm

You're awesome!

When I read I did not notice you were using case sensitive and then I do this:

which is the same if you really wrote that using case sensitive.

Thanks a lot! XD
Posts: 8
Reputation: 191

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], MikaelS, nahima, Shenkai the ssj, Yahoo [Bot] and 15 guests