Here's another alternate palette cart, although this one is a bit more optimized and easy to put in a game with just ONE function!
Function if anybody wants to copy it:
Basically how it works:
As you can see from the gif, there is a menu-item that will change the palette from the regular PICO-8 palette to the alternate one.
That's pretty much it, just a little base for any games taking advantage of this
Also, if you want to learn more about these alternate colors, Lazy Devs has a much more in-depth video about it
@SandwichBlam Download the Celeste classic cart, copy the important bits of this cart into that one.
The important bits:
Inside Celeste's _init():
altpal=false menuitem(1,"altpal",function() onoff() end) |
Inside Celeste's _update():
if altpal then for i=0,15 do pal(i,i+128,1) end else pal() end |
and the function:
function onoff() altpal=not altpal end |
Hello @UnitVector, it is not working... (I might just be dumb lol.) but here is a gif and the cart:
something's wrong...
altpal is broken, try it once Madeline is controllable
(dashing makes it turn on and off really quickly)
@UnitVector
@SandwichBlam Im found error that Madeline using dash that a change a alt palette and rest normal palette
Im made my version that im add altpal() in draw function
[Please log in to post a comment]