+1 vote

I read the docs, and my understanding is that I don't need to place the corner bits since they can be replaced by placing the edge bits on both sides. But I can only make 16 combinations with this. How do I get 47 (or 48? I saw that number sometimes too) different bitmask combinations?

I have one center tile, one single tile, four tiles that have only one neighbor, six tiles that have only two neighbors, and four tiles with three neighbors.

Edit: The corner bits work differently than the edge bits but I can't figure out how. :|

in Engine by (7,786 points)
edited by

1 Answer

+1 vote

Corner bits will work the same as edge bits once you mask them correctly. Presume there is nine "tiles" in each square (in Godot, select 3x3). Here's a typical 47 combination:

enter image description here

by (173 points)

What do you mean by mask them correctly? So a corner bit can't just be replaced by two adjacent edge bits? There doesn't seem to be any singular edge bits in the image, so is that not possible with the minimal 3x3?

same here, 3x3 or minimal does not work as expected

Hi, it's been like 8 months. I've figured out how corner bits work now. 3x3 minimal doesn't match patterns that have a corner-bit that doesn't have two edge-bit neighbors and instead just reuses another tile. So you need to place corner bits only when they have two edge-bit neighbors.

I posted my own thread


it's not only about corners, the whole autotilemap is not working at all for me

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 webmaster@godotengine.org with your username.