Skip to content

Transparent parts in the sprite sheet displayed as random color dots instead of transparent? #75

@rxing365

Description

@rxing365

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
tileset

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions