10-27-2022, 11:45 PM
(10-27-2022, 09:24 AM)megamarc Wrote:(10-27-2022, 03:47 AM)System64 Wrote: Hi, can one tileset uses multiple palettes? (Like Palette attribute per tile in old consoles) Thanks for your answer
By the way, this is a pretty exciting update! the CRT filter is also way better!
Hi!
Each tileset can have a single palette, there's no per-tile palette as in classic 2D chipsets. However, as you can now have several tilesets on the same layer, and each one have its palette, that's several palettes per layer.
Thanks for your feedback! I'm glad you like the new CRT effect :-) better looking and much more efficient in terms of CPU usage
Hi again
You can do that by simply making multiple copies of the TSX file, then load the tilemap and assigning a palette to each tileset. Want to change the color of a tile? No problem, just get the tile ID of the tileset, swap the tile to another tileset, boom, you changed the color, at least, it should be the idea. I will try that.
However, I have a nice quality of life suggestion : You can get the palette of tileset, but you cannot directly set it. Instead, you have to do something like this
TLN_GetTilesetPalette (my_tileset) and then set the colors you want. It would be so nice to have something like this : TLN_SetTilesetPalette (TLN_Tileset tileset, TLN_Palette palette)