I got stuck in spawning, I am newbie to javascript I had managed to create random spawning of multiple objects but the frame rate is too low in android devices.I dono how to clear the objects spawned and unused in the game which is running in background.Please help me to find out how to destroy spawn objects in certain interval of time.
That should work although I would not put that in the update. I’m not sure about performance but its an IF that will be evaluated many time by seconds.
You could also use this.schedule to spawn your object