Hello,
I created a buffer,and emptied it with clear(), then used sprite() to draw the game's map into it, and then used blit() to display the buffer on the screen.
All the opaque parts are good, but the parts that should be transparent are displayed as random color dots. I tried to use clear() on the buffer SCREEN before drawing on it, but it didn't work. Drawing the sprite directly in SCREEN without blit() seems to work correctly, but I really need multiple layers.
I used this web page to convert my PNG image: https://wiki.picosystem.com/en/tools/image-converter
Here is my code and the sprite sheet I used.
main.txt

Thank you!
Hello,
I created a buffer,and emptied it with clear(), then used sprite() to draw the game's map into it, and then used blit() to display the buffer on the screen.
All the opaque parts are good, but the parts that should be transparent are displayed as random color dots. I tried to use clear() on the buffer SCREEN before drawing on it, but it didn't work. Drawing the sprite directly in SCREEN without blit() seems to work correctly, but I really need multiple layers.
I used this web page to convert my PNG image: https://wiki.picosystem.com/en/tools/image-converter
Here is my code and the sprite sheet I used.

main.txt
Thank you!