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

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!

9 Likes

Super awesome! :star_struck:

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

Otherwise, great work and thanks for sharing! :pray:

Woah this will be so useful!

2 Likes

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

2 Likes

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.

2 Likes

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

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

2 Likes

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.

2 Likes

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

1 Like

Thanks!