Spawner System

0 favourites
  • 5 posts
From the Asset Store
A system for storing and processing information online
  • 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?

  • 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)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Uh. You gave me an idea then I've tried this:

    <img src="https://dl.dropboxusercontent.com/u/91500470/spawner.PNG" border="0" />

    but obviously it doesn't work.

    As you can see, I have 2 sprites for zombies then I have a zombie spawner.

  • 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.

  • You're awesome!

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

    <img src="https://dl.dropboxusercontent.com/u/91500470/spawnerworks.PNG" border="0" />

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

    Thanks a lot! XD

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)