Shoot the zombie hats! Drink The slushies! Save the survivors in this top-down shoot-em-up.
What I did was have two global variables: Zombs_to_spawn and Zombs_alive.
At the start of a wave, I set Zombs_to_spawn to the amount of zombies I want to spawn in the current wave and set Zombs_alive to that same number.
I will also start a timer and loop it to spawn the zombies.
When a zombie spawns, subtract 1 from Zombs_to_spawn and loop the timer.
If the Zombs_to_spawn variable is 0, do not loop the timer.
When a zombie dies, subtract 1 from zombs_alive.
when Zombs_alive is 0, start the next round(where you just add 1 to your wave counter and start the loop over)
Hope this helps!
thanks, i will try it right now haha, i don't understand some details but i do my best, i hope you try my game, when i finish a demo
I'm excited to try it out! good luck!
construct.net/en/free-online-games/prueba-rondas-ia-zombis-64257/play tis is my "demo" actually is an alpha hah :v , espero y sea lo que pensabas
hey¡ yes i did it ... and works perfectly , but i hava another problem .. when i shoot an enemy and they are overlaping or one above oters all of the are destroyed , i dont know how i could fix it, an idea ?, i try upload a "demo"