OK, this seems like alot of stuff, but its just because its laid out step by step, I think you should be able to get through it all.
Sorry about the timer thing, I assumed that you already had the timer made, I dont know why... Anyway, I used to get frustrated with your problem with the numenemies. To the computer, its a bunch of nonsense, that is until you make it a variable. I also assumed you knew how to do this, sorry. What you need to do is, on the tool bar, you will find a button called "script'. Press it, and youll find a script editor screen. You need to find the button that says "variable" (note: not variables/functions). Click on it. A menu will pop up. Click add and you will find a new menu, dont worry about anything except the name at the top. Type in numenemies, and click add. Then you can close out and everything should be fine

. About the timer, if you hav'nt made a timer for the actor that creates the enemies, you need to do so. This is how to do it, if you have already made the timer, you dont need to read anything under the 1.
1. To make a timer, go to the actor control of the actor that makes the enemies. Then, in the events, select the "draw actor" event. Then select the "create timer" action. Press the "timer" button in the new menu, and select "new timer". You can name it whatever you want, in the next box, type in 5000 to make the timer go off after 5 seconds (you can choose how long you want it to be if you dont like 5 seconds). Then click ok, and you made a timer!
2. The "timer" event is in the events button on the actor control of the actor that creates the enemies. Select "timer" and a timer menu should show up. Press the timer button and select the timer you made. Then press add action, and press "script editor". In the script editor, write:
if(numenemies<5)
{
CreateActor("your enemy's name", "icon", "(none)", "(none)", 0, 0, false);
Press add, and youre done!!!!!

If you have any problems just tell me.
