I'm developing a top-down space shooter, and I have a mechanic in which when the player's "Score" variable reaches 10, it spawns one new enemy type and keeps spawning when one is killed.

I have done this by creating a variable called "UFOSpawn" which by default is set to 0, and sets to 1 when the players score reaches 10. When said variable is set to 1, the system will spawn the enemy type. If on