Changing autotile pattern

Godot Version

v4.4.1-stable_mono_win64

Question

I have encountered and issue I’m positive there is already a fix for, but I have issues finding the solution or figuring it out on my own.

The issue is that sometimes you might end up with a tile that won’t create intended pattern when you stack it. Good example would be a brick like this:
Sprite-0001
If you stack it, it won’t repeat properly:
Sprite-0001

Solution to this is quite simple if you do it manually. Just have second flipped tile, and pattern is properly created:
Sprite-0001

The problem is that doing this manually is not feasible. You need autotile. And autotile has only one version of each tile. In theory Alternative Tiles system does exist, but it places alternative tiles in completely random way. Here you need to create a pattern. Of course another fix would be to rework the tile, but if you want exactly this size of the brick, then you have a problem.

Can you copy here the image of the repeated versions where:

  • No flipping, so it is not exactly what you want
  • Flipping, so it’s what you want.

Because I feel like you are creating an issue that is not actually an issue but just a poor tile pattern choice for ‘autotiling’

1 Like

I’ve uploaded the images. It looks like you can bypass the post limits if you edit the post, or the system no longer considers me a new limited user.

I think pattern is your best option.

You can create a pattern that is basically your original tile and alternative flipped tile under it.
Then you just paint it to the tilemap. Of course this will still require manual checking to make sure you tiled it correctly, or if you add a single tile somewhere.

Another solution:
If you want to make sure it is done properly (with no mistake), maybe you can create a script that checks:

  • if you place single tile to an odd cell.y, it’ll paint the original tile
  • if you place single tile to an even cell.y, it’ll paint the alternative flipped tile

You can make the script work within editor by @tool

1 Like

I think doing it the scripted way is the most sane option. At least it looks like so to me. Of course the best solution is to make a tile that creates proper pattern - smaller brick would work well, and so would bigger brick. But I wanted to know what to do if you absolutely need that specific tile.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.