# Is tile map ok in beta with 8x8 pixel tiles?

**URL:** <https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891>\
**Category:** Arcade\
**Created:** [December 12, 2019, 11:21pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891 "2019-12-12T23:21:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [December 12, 2019, 11:21pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/1 "2019-12-12T23:21:14Z")

</div>

I just ran up some code in beta. The tile map (16x32) in the block looks ok but on screen it’s broken and looks more “blockly” but only in certain places. I’m wondering if some code is assuming 16x16 and ignoring my 8x8 setting?

I’ll add more detail when I’ve got more time to look into this.

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [December 13, 2019, 3:14pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/2 "2019-12-13T15:14:27Z")

</div>

The particular feature/bug I’m observing is when a user has used the “classic” tile map from `0.14.9 5.21.14` and then loaded that code into beta beta. There’s one more twist as this involves switching from 16x16 tiles to 8x8 but _leaving each tile as a 16x16 image_. It looks like `0.14.9` only uses 8x8 of that image but `0.14.54 5.30.19` uses all of it despite the 8x8 setting.

 ![arcade-TileMap-Strangeness-8x8-simvideo1](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/774422b4ea1f501e575e5b4c568685d34f10674b.gif)

There’s another peculiaritiy here, a thin row of pixels is _missing_ on some of these 16x16 blocks on this smaller res version of the sim screen. I’ve tried to indicate where this occurs with mouse pointer to make it more obvious. Switching to full screen and the thin row _isn’t_ missing, switching back it’s still missing.

![arcade-TileMap-Strangeness-8x8](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/a7a646a624f268b1844310f12eef921f52d48687.png)

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [January 6, 2020, 10:07am UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/3 "2020-01-06T10:07:34Z")

</div>

This code fails to load in production (`0.16.1`) now. It goes into `JavaScript` view and highlights `scene.setTile`. The mouseover says: `Property 'setTileMap` does not exist on `typeof scene`.` Image below:

![arcade-TileMap-Strangeness-8x8-0.16.10-codeloadingproblem](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/24a3eb30bbfef17621ab3b46568034e21f89892b.png)

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [January 6, 2020, 5:47pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/4 "2020-01-06T17:47:50Z")

</div>

Did you copy and paste that snippet from somewhere, or was that a previous project? Either way it just needs the `color coded tilemap` for backwards compatibility with the old tilemap blocks, but if this was an old project it should have been added in automatically.

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [January 6, 2020, 10:35pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/5 "2020-01-06T22:35:21Z")

</div>

I just tried to load in that png with the code in it from the thread by dragging it into `0.16.1` and it errored ☹

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [January 6, 2020, 11:36pm UTC](https://forum.makecode.com/t/is-tile-map-ok-in-beta-with-8x8-pixel-tiles/891/6 "2020-01-06T23:36:41Z")

</div>

Huh, didn’t realize the max version for upgrade rules was exclusive… looks like an off by a few bug here 🙂 thanks for catching [https://github.com/microsoft/pxt-arcade/blob/master/pxtarget.json#L146](https://github.com/microsoft/pxt-arcade/blob/master/pxtarget.json#L146) . Fix here [https://github.com/microsoft/pxt-arcade/pull/1681](https://github.com/microsoft/pxt-arcade/pull/1681), and here’s you game with the package installed: [https://makecode.com/\_AaC254Mr69sL](https://makecode.com/_AaC254Mr69sL)
