I'm trying to cast a shadow over a distorted sprite by setting a fill pattern with transparency andd then rectfill
ing over the sprite. But I can't seem to get the pico-8 fill pattern transparency bit to work. Does anyone know how to get this effect working in picotron? For reference, the introduction to https://pico-8.fandom.com/wiki/Fillp describes it at the end - adding 0x0.8 to a fill pattern will enable the "on" bits to be transparent.
I've looked into the gfx pipeline doc more and i feel like there shouldd be a way to do this with color tables but even if i set the color of the pattern to be transparent it just draws black.
I am also experiencing this, plus, using the high bits to set the secondary color when using rectfill() no longer works.
Kira on the Discord found a work-around: poke (0x550b, 0x3f) beforehand to make black transparent, then poke it back to 0x00 after, if you need to actually draw something in black. Not ideal, but it works.
That's the officially recommended method: https://www.lexaloffle.com/dl/docs/picotron_manual.html#fillp
[Please log in to post a comment]