Adding more data to a tilemap's tile

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

So I have a tileset with various objects, let’s say I make a single tile of a closet. The things i can set in the editor for the tile i created are: name, normal map, collision shape, modulate, etc.

my question is how can i add more stuff to that section? like for example if i want to save data i need for when the character interacts with the closet, or data for the clothes i have inside and stuff. is it possible to configure it the same way you add export variables?

:bust_in_silhouette: Reply From: Inces

Unfortunetely there is no way to do this, at least I haven’t found it in GOdot 3.3.
You can create a dictionary variable, with your tiles as keys, and more dictionaries as values. This way You can simulate what Godot does not support, for example

var tiledata = {(0,0) : {"interaction" : ("grass","NPC"),"destructable" : true, "items" : [apple, hat]}, (0,1) : .......................