I just upgrade to OpenFL 6.0 and notice that tilemap now works in my project wrong.
I see changing in function removeTile().
in old version it use array remover:
public function removeTile (tile:Tile):Tile {
__tiles.remove (tile);
__dirty = true;
numTiles = __tiles.length;
return tile;
}
and now it is just mark as null
...
for (i in 0...__tiles.length) {
if (__tiles[i] == tile) {
__tiles[i] = null;
tile.parent = null;
}
}
...
but it length of tiles does not change, and tiles not reordering!..
so after using removeTile() i may see such straged traces:
We used to have a __tiles array, and this was the only thing used when rendering Tilemap. Now we render using TileArray, and may (or may not) have Tile objects that represent each entry in the TileArray.