0 Favourites

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

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

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,153
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,736
MPPlantOfficial's avatar
MPPlantOfficial
Unread hot topic
0 Favourites
Why is Stencyl doing better?
44 16,859
Potato's avatar
Potato