Trouble understading autotile terrains in Godot 4.0

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RezardRezard

I am used to Godot 3.X autotiles and I don’t understand the behavior of the new terrains in Godot 4.0. My main issue are the ugly edges and the unpredictable way the engine adds tiles.

I know the tool has changed drastically from 3.x and probably I am using it wrong.

Please, I 'd like to ask for any tutorials or links that explains how to use the new tool.

Tks.

:bust_in_silhouette: Reply From: love_this_name

Hey, I know it’s been a while since you asked your question, but I have some tips after messing around:

  1. Make sure you activate the centre bits in the bitmask for your TileMap terrains. This wasn’t a think in Godot 3.0 but is here.
  2. I use ‘Connect sides’ for my terrains where I’m doing things like basic walls. To achieve what was ‘3x3 minimal’ in Godot 3.0 you need to use ‘Connect corners and sides’.
  3. If you want your terrain to be in the same layer as other non-terrain tiles, like a grass tile you fill things with, make sure your terrain has a blank tile. This tile should have no bitmasks set.