08-11-2022, 04:11 PM
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.