I have a set of premade objects. The objects move across the screen at X speed. I want to make it so whenever the current object on screen reaches X on the X-axis it will randomly pick one of the other premade objects to begin behind it to create a infinite loop but with random order by which the objects appear.
Say I have 'ground1' moving across the screen, once it reaches X on the X-axis, I want it to randomly choose one of the other objects from a list to create a object following 'ground1' such as 'ground4' and when 'ground4' is at X to load another random 'ground' object to follow it.
Thanks in advance.