hello. I am working on my Ludum Dare game atm, and I have a piece of code that is fairly essential, but isnt working.
see, I am making a scrolling shooter, and waves of enemies are stored in timelines. When a player kills all of the enemies in the wave, the game should generate a new, randomly selected wave. I am trying to get it to work with just 2 wave types, so that I can expand it for the rest of ludum dare. The problem is that the code for 2 waves isnt working. I have a variable called global.enemies that should (and does, ive checked with the debugger) = 0 if there are no more enemies on screen. The code generates 1 wave, and then there are no more subsequent waves. the code in question is: