Page 1 of 1

#PB_Sprite_AlphaBlending story [Solved]

Posted: Tue Jan 13, 2026 6:00 pm
by SPH
If I do this:

Code: Select all

LoadSprite(1"D:\1.bmp", #PB_Sprite_AlphaBlending)
and then at some point I do this on the sprite :

Code: Select all

Plot (10,10,0)
how can I treat the plot as a real hole in the sprite where color zero is transparent?
I've tried, but the dot is black and not transparent...

:shock: :arrow: :|

Re: #PB_Sprite_AlphaBlending story

Posted: Tue Jan 13, 2026 6:06 pm
by miso
Use drawingmode allchannel, and plot with color rgba(0,0,0,0). The alpha channel will be the opacity/transparency.

Re: #PB_Sprite_AlphaBlending story

Posted: Tue Jan 13, 2026 6:17 pm
by SPH
Thank you very much !!