Strategy RPG - Fire Emblem (storing terrain data) ?!

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

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?!

:bust_in_silhouette: Reply From: MysteryGM

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

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

xDGameStudios | 2018-11-15 16:54

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.

MysteryGM | 2018-11-15 22:31