I continue to create in game level editor. So I’m using the set_cells_terrain_connect() function to set the tiles, but I can’t imagine what I need to remove the tiles. The erase_cell() function actually does what it’s supposed to do, but the tiles around it aren’t updating.
After using erase_cell, call set_cells_terrain_connect on the tile next to the one that was erased and just set it to what terrain it is already. Make sure to pass the last argument ignore_empty_terrains as false so it takes the empty cell into account.
Thanks for the answer, but I encountered another problem.
If I erase a cell surrounded by four tiles, everything works fine.
But if I delete a cell surrounded by two tiles, the tiles on the top and left won’t update.