Log In  

I'm trying to cast a shadow over a distorted sprite by setting a fill pattern with transparency andd then rectfilling 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.

P#145635 2024-04-04 01:47

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.

P#145637 2024-04-04 02:32

I am also experiencing this, plus, using the high bits to set the secondary color when using rectfill() no longer works.

P#148257 2024-05-11 02:42

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.

P#148259 2024-05-11 02:48 ( Edited 2024-05-11 02:58)
1

That's the officially recommended method: https://www.lexaloffle.com/dl/docs/picotron_manual.html#fillp

P#148262 2024-05-11 03:41

[Please log in to post a comment]