- Home /
Editing tiles (and tile sprites) at runtime
I'd like to have tiles, painted using the tilemap palette, that are destructible. Ideally, each tile would have its own hp field, and if it were hit by an attack, it would weaken and change its sprite to a cracked sprite.
It'd be great to handle this all by extending TileBase, but it seems like most of the methods that exist on tiles are meant to run in-editor, rather than at runtime. What's the best way to handle this? I could probably control all of this information via a script on the tilemap itself, but it feels icky compared to having tiles control that information themselves.
Your answer
Follow this Question
Related Questions
Getting cell position of a Tile from a reference to that Tile at runtime 0 Answers
How to get adjcent tiles (horizontal or vertical) in an isometric tilemap ? 1 Answer
2D: Best way to group a type of tile based on their neighbors similar type? 1 Answer