How do I spawn enemies from an array for several waves?

0 favourites
  • 2 posts
From the Asset Store
Waves SFX Sea & Ocean contains 170 seamless loops.
  • Hello

    So, what I want to achieve is to have multiple waves in my game (say 1-20), and each wave should have several sub-waves (1-10), each sub-wave should then have a unique amount (1-25) enemies that are spawned an will all be the same.

    So my array might look like this:

    wave1 => [
      subwave1 => [
        "1-boss",
        "15-chickens"
       ],
      subwave2 => [
        "15-chickens",
        "5-farmers",
        "10-dogs"
       ]
    ]
    [/code:1tfx75u4]
    Plus 9 more wave arrays, and of course more subwaves also.
    
    And the result would be:
    [ul]
    [li] Player indicates they're ready[/li]
    [li] Current Wave is 1[/li]
    [li] Loads the wave1 array[/li]
    [li] Spawns subwaves (spawns 1 boss, waits, spawns 15 chickens; After waiting even longer, spawns the next subwave)[/li][/ul]
    
    I cannot find a way to do this at all, any help at all is appreciated.
    
    If I could spawn an object by  typing it's name instead of actually selecting it from the list of sprites I've made, I wouldn't really have an issue.], but I don't think I can do that either.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I could spawn an object by typing it's name instead of actually selecting it from the list of sprites I've made, I wouldn't really have an issue.], but I don't think I can do that either.

    Just on this, look at the Nickname 3rd party plugin.

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