Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to create seemingly random arrangement of tiles in a grid?

$
0
0
I am making a game with a huge environment where terrain tiles appear as the player gets close enough to them. It can be thought of as a grid of tiles with coordinates starting at (0, 0), and extending outwards in all directions. I will have a variety of these terrain tiles, and I need them to be placed on the map in a way that appears to not have a pattern, but it can not be random either. Manually setting the tiles is not an option because the map will be gigantic. I need a function that will take the map coordinates and output which tile to spawn. Thanks in advance!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>