Greetings again !
I'm trying to make another "wave manager" kind of "more intuitive" so I'm reworking on all my wave system.
Here's my layout :
The wave sprites have each an ID variable : 0, 1, 2.
They also have variables like the wave length, number of generated enemies, ID of generated enemies.
They also have a bullet behavior, so they're slowly moving down until they reach the player screen.
When they reach screen, they stop moving and generate several enemies at regular intervals from their X-Y coordinates.
The problem that I have is that my conditions can't target a specific wave.
For example, actually the wave sprite is destroyed when it has spawn all its enemies.
The first wave generate 5 enemies, the second wave 2, and the third 4.
When the first wave has generated 2 enemies, the second wave is destroyed. On the fourth generated enemy, the third wave is destroyed.
To apply these conditions on the same wave sprite, I tried to use a foreach wave loop. But that's doesn't work, because the first loop has to finish spawning its enemies, before starting the second wave.
So, any idea to have several waves spawning enemies at the same time, based on my capx?
Here is my capx : canapin.com/shooter/test.capx