Doing an endless runner style map and spawning tiles ahead of the player.
I’ve got an array that it spawns from. But it has a tendency to throw the same tile 4 times in a row occasionally. Fairly annoying. They are large tiles and recognizable so I really want to minimize the repeating.
I tried a shuffle but not sure I’m using it right. I tried before and after the loop.
I really noticed no difference between having the shuffle and not.
I’ve got 8 tiles atm and I get a lot of 2,3 and 4 of the same tiles. Maybe 50% of the time I am getting 4 unique tiles.