- Home /
Question by
smandindia · Jul 22, 2021 at 07:49 AM ·
instantiatepositiondestroydelay
Bomb falling from sky continously
I'm creating a fighter jet game
Player will fly and destroy enemy
How to make object CONTINUOUSLY (endless - auto generate after a delay) falling from a random position in sky
Comment
You can use coroutines and Random.Range to achieve this effect,
Create a coroutine to handle the job of calling the spawn methods, which uses Random.Range to find a position within a range of coordinates and then instantiates the bomb at that position with a fixed rotation.
Your answer