Tilemaps won't update when changing tiles

Hi there, I am trying to make an “escape room” sort of game. Levels 1 - 7 work perfectly fine, but when I try to change a tile of a closed chest to an open one, it doesn’t do so. Changing an “on” lever to the “off” position doesn’t show, but the code after it that changes the lava to the floor works fine.

Here is my code: https://github.com/unsignedarduino/escape-the-dungeon
(Please excuse my ugly code :stuck_out_tongue:)

TL;DR: I am making an escape room game. Levels 1 - 7 work. Only some of level 8’s tiles update when changing tiles.

Thank you for your help in advance!

3 Likes

WOW! That game is awesome!

You have found a bug! I’ve opened an issue for it here: https://github.com/microsoft/pxt-arcade/issues/1737

Basically, the issue is that the open chest tile doesn’t appear anywhere in the tilemap.

You can work around it by opening your tilemap, adding an open chest, and closing the tilemap editor. You can probably even delete the open chest from the map after is has been added at least once.

1 Like

Thanks. :slight_smile:

Thank you for doing that too. I was going to plan on doing it if I didn’t find a solution.

And it obviously works. (After I used the open chest in the tilemap at least once, I could delete it.) Thank you so much! :smile:

1 Like

No problem! Thanks for reporting the issue!

1 Like