Good day, and thank you for looking at this tutorial i put up for the convenience of developers who wish to understand
palt() and how it can be utilized.
the command is used to render colors as transparent when sprites or graphical commands are used. This command also avoids any other edits to the palette that are initiated in the code used.
syntax for palt is simple: first parameter chooses color to render transparent or not, second parameter is boolean and decides for the color to be transparent. palt( x , true ) would make the color x not render.
this should be a useful command when using another color as transparency.
I want to show you how sprite packaging [as i call it] can be utilized in pico8, to provide for bigger sprite space for sprites that containt up to 4 colors.
- Sprite Packaging for 2 color sprites -
The most efficient way i get 4 sprites from one is to stick them together and draw them as if they were different sprites.
-- a should be 1 , 2 , 4 , 8 function sssspr( x , y , w , h , dx , dy , a , c ) for i = 0 , 15 do --remove unverified colors if (i/a)%2 < 1 then palt( i , true ) else palt( i , false ) end -- turn verified colors into c pal( i , flr((i/a)%2)*c ) end sspr( x , y , w , h , dx , dy ) palt() pal() end
I stick colors in a blending program which forces one color to be its next, and this way of combining sprites work very well for me.
And I don't know what else to add but that by using sprite packaging, you can get 512 sprites that have two colors, and 256 for sprites with four.
- Programs which use this - TinyTextLS / MinitextLS https://www.lexaloffle.com/bbs/?tid=3059
|is in beta|
some of the commands and keys you can use are
ARROW KEYS = move selection for zoom
Z = zoom
X = colors
TAB = you can change color combinations
D = edit palette
|if you want to help me make this art thing|
you can help by assisting in
-making the zoom animation actually work
(ADDING YOUR OWN SPRITES)
part of the art saga i suppose.
CONTROLLS = ALL
INSPIRED BY DIARY OF UNSPOKEN TRUTHS, ARTIST, AND I, ROBOT
BY NIALL, MICHAEL, ANd PERSON