Is it possible to use the Tileset class on individual tiles?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By McVities Chocolate

Hello,

Is it possible to use the methods in the Tileset class on an individual tile? For example, I can use tile_set_modulate() on a tile id but this will affect every tile; can you do this for a single tile of that id? I think from the way the tilemap works this is not possible, but is there a workaround for it or is there likely to be a future update which will include this?

Cheers.

:bust_in_silhouette: Reply From: njamster

I think from the way the tilemap works this is not possible

Correct.

but is there a workaround for it

You can spawn a Sprite at a cells position and modulate that.

or is there likely to be a future update which will include this?

I don’t think so, storing information for (potentially) each individual cell as opposed to just each tile in the tileset is a lot more demanding in terms of memory. If you want to do that, you might as well use a set of individual Sprite nodes instead.