This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm creating a 2D Strategy/Tactical RPG and I need to store information related to the terrain type (tilemap) movement cost, damage, attribute bonuses....
I wanted to ask you for ideias on how to store this information, right now Godot doesn't have a way to write tile metadata in an easy... editor friendly way. What are you recommendations and/or tips?!

in Engine by (29 points)

1 Answer

+1 vote

Use a dictionary that hold the coordinate of every tile and it's effect.

by (1,492 points)

Well this was my idea also... but this is far from easy to maintain! Is there a more visual approach??

Well if you use the tile map, you can create a very simple code that uses TileMap.getCell(x,y) this will return the index of the cell used, you can then use that to check what kind of "terrain" that cell is.

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 Frequently asked questions and 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 [email protected] with your username.