This is my current code:
extends TileMap
signal button1_1
func _on_activate_buton_body_entered(_body):
button1_1.emit()
I want it to disable a door 1 layer in the tilemap when the on_activate_button function is triggered
i tried using chat gpt and i tried using the tilemap and .layers.Door1.enabled = false
A look in the documentation for
TileMapand reading the list of methods, should take you toset_layer_enabled:We, of course, do not want to enable the layer, so we are going to pass
falseon the enable parameter.Thus, you would disable a layer like this:
For example, disabling the layer 1 would be: