This is my first time trying to make a game. Im trying to make a side scroller where on your journey you have to dodge things like rocks and holes and stuff. Im trying to make the rocks spawn along the path in a random order but they always spawn in order from top to bottom. Ive tried a few methods and just cant quite get it to work the way I want. There are 3 paths that they can spawn on, top, middle and bottom paths.
Im trying to delay the next spawn of the rock so that the player has enough time to get the wagon onto a path that will avoid it. The distance between the spawner and the rock seemed to work for that. I tried to use the randominrange but it would only select each number one time, so each rock would spawn only once. I tried a few different things like trigger only once on each method (rng variable, rock path array) but I am open to any and all suggestions.
Thank you in advance!