• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Enemy spawning in a moving room

chefdez

Member
Hello!

I've been working on as very basic top down vertical space shooter and I was wondering what a great way to approach enemy waves are? Currently I have an object in room that pans across the room and the camera follows it, keeping the level moving until the end. I have a controller object that will randomly spawn enemies on an alarm but will do so infinitely. How would you approach enemy waves so that you can spawn them quickly and efficiently? I was thinking about spawning the enemies based on the distance between the top of the room and the camera, using for loops on a timer to create multiple enemies at once. Any suggestions? Thanks!
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
You could use timelines... If you know how many steps it takes to traverse the room (easy enough to calculate), then you can create a timeline that spawns enemies at appropriate intervals and assign it to the controller when the room starts.
 
Top