Hi, i am working on a project, in this project i would like to have it scale in difficulty as he passes through levels. to do this one of the things i want to do is generate a random number in the beginning of the layout and then spawn an enemy every second until he reaches that number. so far i have tried multiple ways to do this but they have either resulted in no spawns or infinite loops.
gyazo.com/51e09a56b90e1fb59ba43d374e978c58