+1 vote

I'm trying to generate a dungeon by using drunken walk method described here. Tl;dr for the method described there is: carve out the path from the wall. I tried to use set_cellv(position, -1) and set_cellv(position, 1) to do it, but when i do, the autotile does not updating itself. See the image below to see what i mean.

This is the autotile that i get when using set_cellv(position, 1):
The error when using set_cellv()

The result i want:
What i want

It's the same placeholder autotile i got from godot docs, but when i use set_cellv() the wall did not appear.

in Engine by (29 points)

2 Answers

0 votes

You need to call update_bitmask_area to apply the autotile rules: https://docs.godotengine.org/en/stable/classes/class_tilemap.html#class-tilemap-method-update-bitmask-area

In code:

by (52 points)
0 votes
by (14 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 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.