I've created a game where 2 sets of enemies will be coming towards the player at random spawning times.
I wanted there spawning time to increase over time to increase the difficulty of the game, so i added a Global Variable called 'SpawnTime'.
The 'SpawnTime' will subtract from the enemy spawning rate. However i need to create a limit so that it doesnt subtract forever.
I'll try and explain my even page below.....
(1) every x seconds | random(5-SpawnTime, 8-SpawnTime) | Create Object | enemy1
(2) every x seconds | random(1-SpawnTime, 3-SpawnTime) | Create Object | enemy2
(3) every x seconds | 5 Seconds | Add 1 to SpawnTime
So i basically need to stop the SpawnTime from constantly subtracting from the enemy spawn rate otherwise once the spawn rate reaches 0 then a loooooooads of enemies are just spawned all at once