I have a procedural generated perlin map and want to instantiate the correct mountains pieces on it.
I know unity has a Rule Tile function but that does not work with procedural generated maps. And i am not smart enough to do a wave function collapse on just the mountain area so i want to compare gameobject tags in 4 directions to figure out what to place.
All tiles have the tags “tile_stone” or “tile_gras” and all are named with their cordinates like “tile_x43_y30”. So how do i write the code? Something like
if("tile on x = 43 and y = y37" has tag "tile_gras")
{
tile_north = "tile_gras"
}
Or if you have another simple suggestion, since i am still a begginner. The mountain will be initiated at level 5, same as the player but the tile map in on level 0 so i cannot use circle colliders and i dont understand raycasts yet. Thank you for reading!