Random tile selection for an infinite world

I am trying to make a game that has a set of premade tiles that it can choose from that it will use to infinitely create a map. Any ideas of how I might go about doing this? I’m fairly new to Unreal.

Perhaps you could start by making an array of:

But that would really depend on what the tiles are and what they’re supposed to do. And to pick something randomly and spawn it in the world:

When it comes to map creation, there’s a myriad of ways to accomplish that, look into Wave Function Collapse - see if that delivers.


However, without knowing (MUCH) more, this may not be great advice. Consider elaborating a bit more in case the above is not enough.

1 Like

Sounds like an endless runner;
Probably start with looking up your - ran of the mill, horribly bad/wrong, “without further ado” - youtube tutorial and move on from there…

1 Like

Thank you for responding. I would like to have a few different floor tiles (each 30x30 just for example) as different blueprints that each have their own set of blueprints that will spawn on top of them similar to the way map generation is done in ‘3008’ on Roblox. I would like to be able to place a master tile in the level and have the game automatically build off of it using the premade tiles to build off infinitely and randomly in all directions.

Ok, it’s different from an endless runner, but the concept of landing bits a you go is relevant.
Start with looking that up, see what you come up with.

Also you have to load and unload for things to work, so what you are asking may not be possible or only possible within a maximum number of “cells”…