0 votes

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.
enter image description here
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?

Godot version 3.3.3
in Engine by (34 points)

1 Answer

0 votes

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) : .......................
by (2,468 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.