So I have my game that has 5 enemies that spawn and move across the screen.
I am trying to find a way to spawn these enemies with a simple set of rules. One enemy spawns consistently while the other enemies spawn less often (each zombie has its own frequency to when it should spawn). Over time this should become slightly faster.
I am trying to figure out the code to spawn them in small spurts based on this logic. NO IDEA where to start. I have experimented with timers but this has become quite cluttered and inefficient. Spawning one set every 2 seconds, then the next every 5 seconds, and so on is just too uniform.
A simple example may be 3 of the consistent enemies spawn right after another, then a small pause, then 4 spawn but one of the 4 is one of the less frequent enemies. This type of behavior would be random and gradually go faster.
Any ideas would be great! Thanks [import]uid: 71971 topic_id: 32264 reply_id: 332264[/import]
 
      
    