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

Get help using Construct 2

Post » Sun Sep 07, 2014 4:02 am

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:
Code: Select all
wave1 => [
  subwave1 => [
    "1-boss",
    "15-chickens"
   ],
  subwave2 => [
    "15-chickens",
    "5-farmers",
    "10-dogs"
   ]
]

Plus 9 more wave arrays, and of course more subwaves also.

And the result would be:
  1. Player indicates they're ready
  2. Current Wave is 1
  3. Loads the wave1 array
  4. Spawns subwaves (spawns 1 boss, waits, spawns 15 chickens; After waiting even longer, spawns the next subwave)

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.
B
3
Posts: 3
Reputation: 257

Post » Wed Sep 10, 2014 11:46 am

Zbee wrote: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.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 29 guests