How to use random autotiles in Godot 4

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

I am working in Godot 4 beta 10 and am having a hard time trying to get the autotile system to place a random variation of a tile. I have two almost identical pictures in the same texture (linked below) Tileset Picture and I want godot to pick randomly one of the two variations to put into the scene when drawing. There might be something to do with alternate tiles, but I have not been able to figure it out. Any help would be appreciated.

I don’t have Godot access ATM, but there’s a “Place Random Tile” checkbox in the TileMap tab. It’s mentioned at about 1:35 in this video. Does that help at all?

jgodfrey | 2023-01-10 17:06

I looked at the video, but there is no mention of that for autotile. I think another thing that it might be related to is the priority but still, I have not been able to get it to work. Whenever you or anyone else has access to Godot, I would appreciate trying it out for yourselves and seeing if anything works for you.

DaZel77 | 2023-01-10 17:33

:bust_in_silhouette: Reply From: DaZel77

For anyone looking at this in the future, I did not set it up correctly. If you have two atlases that have the same bitmask and it is assigned to the same terrain, they will randomly be painted as long as the priority is the same. I would suggest that if you have two slight variations that it is hard to tell the difference by just looking at it, modulate one of them to check it.