0 votes

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.

Godot version Godot 4.0 beta 10
in Engine by (56 points)

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?

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.

1 Answer

0 votes
Best answer

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.

by (56 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.