Hi I'm working on a commercial IOS game. But there seems to be a blank pause at the spawning of my enemy.
for example:
system every 3 sec | system set enemygen to int(random(3))
system enemygen=0| system create object blue on layer 1
system trigger once
system enemygen=1| system create object red on layer 1
system trigger once
system enemygen=2| system create object green on layer 1
system trigger once
i figured out that the blank pause is caused by the number generator when it generates the same number. I wanna keep the trigger once condition because I don't want to overspam , limited to one enemy per 3 second.
so how do i fix this? <img src="smileys/smiley5.gif" border="0" align="middle" />