Spawn intervals tied to the score
I'm trying to set the spawn action of an enemy actor to spawn after the score reaches a random amount between 500 and 1000 points and again at different score levels throughout the game. I got the basics working using random(500,1000), but after the actor spawns and the score is still less than 1000, it sometimes spawns again while still under 1000.
How can I set it to only spawn once while the score is in that range?
Thanks.
How can I set it to only spawn once while the score is in that range?
Thanks.
Comments
I don't really want to use a timer, as I would prefer that the new actor spawns after a certain score has been reached, random(500,1000).
Any suggestions?
Thanks.