Setpalette

machok

Well-known member
oldyz I just change the background palettes (all parts of it shares the same palette) using the command "setpalette", with no scripts or entities :)
you can change background color with setpalette command?
would you like to explain more about this? I searched in your mod but couldn't find it
 
you can change background color with setpalette command?
would you like to explain more about this? I searched in your mod but couldn't find it
Yes, take a look at the manual:

setpalette {palette}

  • Change palette in use to other palette which is loaded by 'palette' (see above).
  • {palette} correspond to the loaded palette number so if you want to use 2nd palette, set this to 2.
  • Setting this to 0 or -1, reveerts palette to default palette.
  • Like other level objects, this command must be followed by 'at' (see above) and also counted by 'group'.
palette {path} {a1} {a2} {a3} {a4} {a5} {a6}

  • This command loads new palette to be used by script or by 'setpalette' command (see below). However it only works if panels, frontpanels, bglayers and fglayers use same palette as background
  • {path} is the path to loaded palette in .act format. For instance:
data/bgs/staage1/pal001.act}.

  • {a1}, {a2}, {a3}, {a4}, {a5} and {a6} are flags that determines usage of respective transparency. a1 means alpha 1 transparency, a2 means alpha 2 and so on.
  • This transparency feature costs 384kb memory when palette is loaded so use with care.
  • This command can be declared more than once if more palettes are required.

You have to declare the palletes first and them set them whenever you want to (but all layers should use the same background pallete).
I use this on a not yet released stage, that is why you haven't found it :)

-----

I had some personal stuff to solve this last weeks, but here is the current helper list of the game.
Can you name all the characters? ;)
c7366fL.png
 
Last edited:
However it only works if panels, frontpanels, bglayers and fglayers use same palette as background

You have to declare the palletes first and them set them whenever you want to (but all layers should use the same background pallete).

I don't understand this part sorry for my English
 
Back
Top Bottom