0 votes

Hi I'm trying to use autotile in Godot 4, I discovered that is now in the terrain tab and I did manage to use it in the editor but in code I cant make any progress.

This a simplified example of what I'm trying to do:

for x in range(5):
    for y in range(5):
       tilemap.set_cell(0, cord, 0, Vector2(x, y), 1)
tilemap.set_cells_from_surrounding_terrains(0, tilemap.get_used_cells(0), 0)
tilemap.force_update(0)
Godot version 4 Alpha 3
in Engine by (70 points)

Godot 4 is still in alpha so it might be a bug?

Also there is an alpha 5.

Yeah, I'm gonna try it out

Please log in or register to answer this question.

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 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.