Hey there, on this tutorial Casey makes a really nice spawn system -> with datatables
One negative part, it only spawns one of a kind enemys. he said you could do it :
two tables for spawning. One of them would hold the different types of enemies you have in your game. The other table would be for waves. So in the enemy table you might have rows for “Ogre”, “Goblin”, “Troll” (columns being their stats) and in the wave table your rows would be the wave #'s and the columns would be the amount of each enemy. …then arrays