Need help with auto-tiling

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

I need help with auto-tiling. Whenever I use the autotile, it ends up looking like this:
Imgur

Here is my bitmask

Imgur

Can anyone help me?

:bust_in_silhouette: Reply From: JimArtificer

Two problems:

  1. You don’t have enough tiles. You want a tile to handle each permutation when you go to paint them.
  2. You aren’t using the right approach to the bit mask. Think about it as painting the “walkable” regions. (For example, in the image you linked the small red square should be filled in.)

Consider watching this video for an overview of the concepts:

Before attempting to build your own tile set from scratch I recommend finding an image online of one that someone else has created with all of the required tile shapes, apply a bit mask to it so you can see it painting correctly, and then paint over the image with your own artwork.

:bust_in_silhouette: Reply From: shmellyorc

all you need to do is follow this template (without gaps).

what you fill in is the dark gray (in godot autotile). make sure to use autotile 3x3 (simple).

template: https://i.imgur.com/pcGxq5g.png