func ready(): dialoguebox = Label.new() dialoguebox.visible = false…
- User
func _ready(): dialogue_box = Label.new() dialogue_box.visible = false add_child(dialogue_box) var tilemap = $TileMap # Путь к вашему TileMap tilemap.set_layer_light_mask(0, 1) # 0 - номер слоя, 1 - маска света
error: Attempt to call function 'set_layer_light_mask' in base 'null instance' on a null instance.
Assistant
The error occurs because the
tilemapvariable is , meaning Godot couldn't find the node at the path . This typically happens when:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.