Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Sorry if the answer is obviously in the code and I just missed it, but for the Palette Storage, is there any way to switch the entire palette from one to another in Lil between cards? I keep having to replace each of the colors individually and I was wondering if this could be used for some kind of shortcut. I’m still not great at programming in Lil.

(1 edit) (+1)

Hiya! No worries - this was one of the first contraptions I made so it definitely could be made easier to operate. You can put a single Palette Storage contraption on any card and then add this to your deck script: (File > Properties > Script)

palette: cardName.widgets.paletteStorage

For the example above, I'm using 'cardName' and 'paletteStorage' as placeholder names for the card and contraption, respectively.

Then, in any other context (like the Listener, or a widget script) you can change the palette with the line: 

palette.s: "nameOnList"