Log In  

Hi,

I am new to PICO-8 and still figuring things out...
I know how to set a transparency color for my sprites but it only works when using graphic functions at runtime to display them, not when I place them directly on the map inside the map editor. Am I missing something ?

Thanks,
m.

P#78140 2020-06-16 08:23

Nope, you don't miss something, that's correct. You simply can't stack more than one Tile at once on the Map-Editor; the Map is just one single Layer. If you place a Tile inside the Map-Editor, you simply overwrite this Tile.

P#78141 2020-06-16 08:50

But when you draw those map tiles at runtime, the transparency is taken into account.

P#78142 2020-06-16 11:16

Ok I now understand, the transparency is taken into account, but since the background is black... it shows black.
So I have to set manually a background color when designing my tiles

P#78144 2020-06-16 12:09 ( Edited 2020-06-16 12:18)

Or you can use the `cls' function to clear the screen to a color before drawing the map.

P#78170 2020-06-16 23:42 ( Edited 2020-06-16 23:42)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 04:37:39 | 0.013s | Q:12