Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata/Resource slot for Tiles #23374

Closed
xDGameStudios opened this issue Oct 29, 2018 · 1 comment
Closed

Metadata/Resource slot for Tiles #23374

xDGameStudios opened this issue Oct 29, 2018 · 1 comment
Labels

Comments

@xDGameStudios
Copy link
Contributor

xDGameStudios commented Oct 29, 2018

Godot version:
v3.1

Feature description:
Right now I don't get the ideia how can I add metadata to tiles. I think this is an important feature, as tiles are suppose to be performant and lightweight (not having builtin functions like nodes)... being able to add metadata (or Resources type containing data that would be even better) would be a very good feature to add. For example in grid based games when tiles have different properties like: friction, damage, terrain effects, movement costs, etc.

Right now this data is very hard to add in a (auto)tile per (auto)tile bases. Even though I can add scripts to Tileset and tileset_script (those seem to be different things) I can't access the data, variables I create within them! The ideia instead of a tile/tile variables would be a custom resource slot inside each tile.. this way we could create a TerrainResource type (for example) with the desired variables, create a TerrainResource instance for each terrain type and then attach the resource to the tile. It's pure data so the performance would be the same (I think), and when the values need to be changed the only place to change is inside the resource and not the tileset itself (it would be cleaner).

@Chaosus Chaosus changed the title [Feature] Metadata/Resource slot for Tiles Metadata/Resource slot for Tiles Oct 29, 2018
@groud
Copy link
Member

groud commented Oct 29, 2018

Duplicate of #12634

@groud groud marked this as a duplicate of #12634 Oct 29, 2018
@groud groud closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants