I'm creating a game and I've run into a problem. In my game, there is supposed to be a maximum of five enemies all at once. However, that is not the case. I have the computer spawn a sprite that is either an enemy pistol-man or an enemy shotgun determined by a random (1 or 2) global variable. Then, depending on which number is chosen, the computer spawns the enemy sprite when one sprite is killed. The problem is that the computer will actually spawn more than one sprite(I think, either that or randomly creating sprites which it shouldn't since I have it set up as a condition connected to another condition). Any ideas on why this is happening? Thanks in advance.
P.S. Not sure how to post a .cap. Will do so if told how to. Thanks
Edit: Here's the cap
http://www.box.net/shared/pxlm0v85xi
It's only my second game, so the events are a little all over the place.
Edit 2: Just remembered that I don't mention the controls in the game. They are:
Arrow-directions
Left Click- shoot
Right Click- run
Control- switch weapon