Is there any function that I can destroy a tile item on-the-fly while the game is running? Just like the tile:destroy() function in Lime engine.
If not, any other ways to do this?
Is there any function that I can destroy a tile item on-the-fly while the game is running? Just like the tile:destroy() function in Lime engine.
If not, any other ways to do this?
Yes, you can use the updateTile() function to remove a tile from the map and the display by setting the tile to 0. For example, to remove a tile at location (10, 10) on layer 1:
updateTile({locX = 10, locY = 10, layer = 1, tile = 0})
Yes, you can use the updateTile() function to remove a tile from the map and the display by setting the tile to 0. For example, to remove a tile at location (10, 10) on layer 1:
updateTile({locX = 10, locY = 10, layer = 1, tile = 0})