Bug: Duplicating Tile Map Block Links Tile Maps

Expected behavior: when the user duplicates the set tilemap to tilemap block, the duplicate can be independently updated.

What is happening: when the user duplicates the set tilemap to tilemap block, the duplicate tilemap updates all other duplicates as it is changed.

In the screenshot, I added purple tiles to the Level 2 map. This change also appeared in the Level 1 map.

1 Like

This is because the assets are named, so when you duplicate the block, the asset inside the block stays the same. You can fix this by simply creating a new asset or using a new “set tilemap to” block.

1 Like

it’s true, named assets are copied by reference rather than by value and tilemaps are always named

1 Like