Hello, I’m trying to make an endless runner and no matter what I do I can’t seem to get a random object out of a group to spawn, it always just spawns Obstacle1 over and over and no others.
This is the code I have been using for this, it is from this forum post, my obstacles are called Obstacle1, Obstacle2, and Obstacle3. I have tried using arrays, using the solution from this same forum post and this tutorial. Any help would be greatly appreciated!