Hi to all, I need to check if a specific TileMap Cell is empty or not?
Any help? ;)
Hi to all, I need to check if a specific TileMap Cell is empty or not?
Any help? ;)
I have not tried it myself, but based on the documentation for the TileMap node, I think the following should work for detecting empty cells:
if $TileMap.get_cell(x_coord, y_coord) == $TileMap.INVALID_CELL:
print ("No tile/cell at passed in coordinates!")
Thanks a lot! ;)