Hi In my tower defence game i have an event that starts with 4 ships and every time one is destroyed 2 more ships spawn. Each time a ship is destroyed 1 is added to a global variable named counter and then when the counter reaches 100 for example ships stop spawning.
What I would like to do is to trigger a new set of events once all ships are destroyed and no more are being spawned. Can anyone advise the best way to do this?
Originally I had the new events set to when the counter reached a certain amount, but that's not precise enough.
Any thoughts/help greatly appreciated.
Develop games in your browser. Powerful, performant & highly capable.
How about using two variables for keeping track of how many are currently on screen, and deactivating groups to choose what events should run?
My suggestion: EnemySpawnLimit.capx
thank you for your help thats perfect now all i need to do is get the random event activation to work and im home free lol.