How would I go about creating edges in procedural generation?

Godot Version

4.2.x

Question

I’m making a game where I’m using noise textures for random tilemap generation. Part of the tile generation is a blank void, and I have tiles for different edges like corners, sides, top, and bottom. How would I write something in the script that detects when a tile is right next to the void, and also detects what sides of the tile are touching the void to put the correct tile texture?


You can just use the terrain system, check the documentation

1 Like

Thanks, this works super well. Guess I should have looked more into the tilemap’s capabilities :slight_smile:

1 Like