Godot Version
4.3
Question
I want to whe the player press LMB it removes the tile.
I alreay tried:
if (Input.is_action_just_pressed(“Click_Left”)):
$CaveSystem.set_cell(tile_pos, -1, Vector2i(0, 0))
But it didn’t worked, any ideias?
4.3
I want to whe the player press LMB it removes the tile.
I alreay tried:
if (Input.is_action_just_pressed(“Click_Left”)):
$CaveSystem.set_cell(tile_pos, -1, Vector2i(0, 0))
But it didn’t worked, any ideias?
What happens if you use the erase_cell()
method instead?
Could you also add a screenshot of your scene tree
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.