Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Palette attribute per tile
#11
You should modify the loader in LoadTilemap.c to load a custom property from Tiled called "palette" for example. Use this property to set an integer value with the palette index, and store this value In the corresponding bits in Tile structure. No need to create additional layers.
Reply
#12
(08-11-2022, 04:11 PM)megamarc Wrote: You should modify the loader in LoadTilemap.c to load a custom property from Tiled called "palette" for example. Use this property to set an integer value with the palette index, and store this value In the corresponding bits in Tile structure. No need to create additional layers.

The thing is I looked for how to add that custom property to each cell of the tilemap in Tiled, I didn't found anything. I can add this property in a tile in the tileset, but normally, palette slot index is tied to the tilemap, not the tileset.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)