Godot Version
4.5.1
Question
Hi everyone,
I’m completely new to Godot and game development in general, and I’m struggling a bit with understanding how autotiling is supposed to be set up.
I have the following tileset:
I can’t quite figure out how this tileset should be configured in Godot in order to use autotiling properly. I’m especially confused about how the tiles should be grouped and how the bitmask (or terrain setup) is meant to correspond to this sprite sheet.
Would anyone be able to sketch out or briefly explain how this tileset should be set up for autotiling, and why it’s done that way? A short explanation of the logic behind it would be very helpful.
Thanks in advance!
Hi J0ranger!
Getting familiar with Godot’s tiling system can be a bit overwhelming at first, especially when simultaneously learning how the Nodes play together and how the user interface works.
I guess these concepts are best learned by just going through different resources (tutorials, documentation, etc).
Maybe start with a minimal scene and script which setup some tile map entirely programmatically – this way the user interface is out of the way. For tiling you don’t need much, only a TileMapLayer (%map) node with the Tile Set property set and a little script (and an Atlas at index 0).
%map.set_cell(Vector2i(0, 1), 0, Vector2i(0, 0))
I found this tutorial very easy to understand: Generate Random Maps with Perlin Noise by the Normie Programmer on Youtube.
I hope that can get you started!
Good luck 
1 Like