I want to make a Wave system like in COD zombies where there is a limit to the amount of enemies on screen but once an enemy dies, another spawns to take its place. How would I do that?
Develop games in your browser. Powerful, performant & highly capable.
Create a global variable boolean for each zombie or use instance variables so when the zombies health is gone it toggles the variable and detect when it is dead so it will spawn another.