# Arcade-tile-data extension for storing vars/sprites on tile locations

**URL:** <https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426>\
**Category:** Arcade\
**Tags:** extension\
**Created:** [June 24, 2024, 4:43pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426 "2024-06-24T16:43:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![neintoes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neintoes/32/8315_2.png) [@neintoes](https://forum.makecode.com/u/neintoes)\
**Post date:** [June 24, 2024, 4:43pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/1 "2024-06-24T16:43:45Z")

</div>

Hi all,

About a year back I was asking about an arcade tile data extension and last week I needed it for a game I was working on so here it is!

The aim is to mimic the Sprite Data extension, allowing for the storage of the following on tile locations:

- sprites
- booleans
- numbers
- strings
- images.

Like the sprite data extension, when you trigger an overlap event you’ll be able to retrieve the sought after data from the location involved in the event.

The extension also features a ‘moveData’ function/block allowing for the transfer of data from one location to another and ‘cleanseData’ which removes all associated data with a location.

I’ll upload an example project at some point this week, if anyone has any problems/suggestions don’t hesitate to leave a message below!

> **[GitHub - neintoes/arcade-tile-data: Blocks attach data to MakeCode Arcade...](https://github.com/neintoes/arcade-tile-data)**
>
> Blocks attach data to MakeCode Arcade tilemap locations. - neintoes/arcade-tile-data

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 24, 2024, 9:32pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/2 "2024-06-24T21:32:17Z")

</div>

**Super awesome! 🤩**

I can think of a lot of projects where this would’ve been / will be a _game changer_!

> **Just a small note though ...**
>
> I noticed that for setting a Boolean to a tile, the name still says “sprite” instead of “boolean”:  
> ![Function name](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/a/eadbec3d079a0efb544ba63377dc86fc237940f0.png)

Otherwise, **great work** and **thanks for sharing!** 🙏

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 24, 2024, 9:33pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/3 "2024-06-24T21:33:15Z")

</div>

Woah this will be so useful!

---

<div class="post-metadata">

**Author:** ![neintoes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neintoes/32/8315_2.png) [@neintoes](https://forum.makecode.com/u/neintoes)\
**Post date:** [June 24, 2024, 9:38pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/4 "2024-06-24T21:38:24Z")

</div>

Ahh completely missed this! Should be fixed now, thanks for the heads up!

---

<div class="post-metadata">

**Author:** ![neintoes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neintoes/32/8315_2.png) [@neintoes](https://forum.makecode.com/u/neintoes)\
**Post date:** [June 25, 2024, 6:24pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/5 "2024-06-25T18:24:38Z")

</div>

Just a heads up for anyone who’s had a look at it, I’ve replaced uses of ‘get’ within function names to ‘read’ to make it feel more familiar to arcade-sprite-data users.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 25, 2024, 10:55pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/6 "2024-06-25T22:55:36Z")

</div>

> [@neintoes](#):
>
> when you trigger an overlap event you’ll be able to retrieve the sought after data from the location involved in the event.

wdym by this? I use the sprite data extension all the time without overlap events

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 27, 2024, 6:25pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/7 "2024-06-27T18:25:41Z")

</div>

When you overlap a tile you can read the data stored in the tile

---

<div class="post-metadata">

**Author:** ![Marlio](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/marlio/32/21270_2.png) [@Marlio](https://forum.makecode.com/u/Marlio)\
**Post date:** [March 18, 2025, 4:50pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/8 "2025-03-18T16:50:52Z")

</div>

The link seems to be broken. It seems that it either can’t recognize the code attached to the link or the link is out of date.

 ![Screenshot 2025-03-18 9.33.59 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/7/c7c7fc3394185d369f6d9563de9075ae108358ac.png)

---

<div class="post-metadata">

**Author:** ![dcgs-sbu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dcgs-sbu/32/14338_2.png) [@dcgs-sbu](https://forum.makecode.com/u/dcgs-sbu)\
**Post date:** [March 21, 2025, 10:37pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/9 "2025-03-21T22:37:41Z")

</div>

Yes, I spotted that as well - search for the-code-zone/tile-data-pxt-extension now.

---

<div class="post-metadata">

**Author:** ![Marlio](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/marlio/32/21270_2.png) [@Marlio](https://forum.makecode.com/u/Marlio)\
**Post date:** [March 22, 2025, 6:56pm UTC](https://forum.makecode.com/t/arcade-tile-data-extension-for-storing-vars-sprites-on-tile-locations/29426/10 "2025-03-22T18:56:00Z")

</div>

Thanks!
