Good evening,
I am using Unity games development.
How do I make sure the different sprites drop down at different rates and and never stop (Endless)
Any help would be appreciated
Good evening,
I am using Unity games development.
How do I make sure the different sprites drop down at different rates and and never stop (Endless)
Any help would be appreciated
If I understand you right, you want the sprites to randomly fall. To do this, I would make public variables for CurrentTime, TimeToDrop and Speed. In the Start void, I would make TimeToDrop = Random.Range(MinTime, MaxTime). In the Update void, I would make CurrentTime += Time.DeltaTime. Then I would make a separate void that spawns the objects, make the Speed = Random.Range(MinSpeed, MaxSpeed) and make the velocity on the y axis of the object = -Speed. I would then rerandomize TimeToDrop. You want to call this other void in the Update void when CurrentTime >= TimeToDrop. Hope this helps ![]()