Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Access Violation
#11
(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)
Reply


Messages In This Thread
Read Access Violation - by Midnight Syntax - 10-24-2022, 02:42 AM
RE: Read Access Violation - by megamarc - 10-25-2022, 05:18 AM
RE: Read Access Violation - by Midnight Syntax - 10-25-2022, 07:59 AM
RE: Read Access Violation - by Daniel H. - 10-25-2022, 04:49 PM
RE: Read Access Violation - by megamarc - 10-26-2022, 12:35 AM
RE: Read Access Violation - by Midnight Syntax - 10-26-2022, 09:05 AM
RE: Read Access Violation - by Daniel H. - 10-27-2022, 01:02 AM
RE: Read Access Violation - by megamarc - 10-27-2022, 03:15 AM
RE: Read Access Violation - by System64 - 10-27-2022, 03:47 AM
RE: Read Access Violation - by megamarc - 10-27-2022, 09:24 AM
RE: Read Access Violation - by System64 - 10-27-2022, 11:45 PM
RE: Read Access Violation - by megamarc - 10-29-2022, 07:44 PM
RE: Read Access Violation - by System64 - 10-29-2022, 10:30 PM
RE: Read Access Violation - by megamarc - 10-30-2022, 02:34 AM
RE: Read Access Violation - by System64 - 10-30-2022, 02:51 AM
RE: Read Access Violation - by megamarc - 10-30-2022, 04:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)