Arcade Feature request - Tile Data

Hi all,
Just a request (of if I’m being a dunce and someone has an obvious way that I’m missing) I think it would be grand if we could have access to a ‘data’ property inside the Tile class like we do in the Sprite class. e.g. Whenever I create a new class for certain sprites I can stick that class object as the sprite’s data and access the object’s methods easily during an overlap event. It would be super if we could get that same functionality on tiles.

1 Like

Oh yeah, that would be great! Such as if you had a ton of different grass types in your game and wanted the character to walk slower on grass, so instead of setting each one to slow the player you just make the class ‘grass’ slow them.

@neintoes do you mean in javascript or in blocks? for blocks, it would be pretty easy to do an extension for this.

for javascript, if you want this to be on the actual tiles.Location class, it would require an update to arcade. not to say it’s impossible or anything, just that it would have to wait for a release.

1 Like

I mean, if you stored an external 2d array that would be mapped to the tiles, you could easily tie data to a specific tile. Or, you could just go with your approach, if you guys are down to implement that

1 Like