I am working on a 2d runner game and i was wondering how could i spawn different obstacles in a certain distance like every 10X.
So like i can create the obstacles and then in every 10x that spawner can spawn one of the obstacles i created so lets say i have 20 different obstacles so every 10x one of them will spawn and each has %5 chance to be the one that spawned.
I know its a little hard thing to teach this to me down in the comments so i guess if anyone can link me to a video or a page or whatever that i can look at and learn the things i need, i would really appreciate. Thanks for reading.