#PB_Sprite_AlphaBlending story [Solved]

Just starting out? Need help? Post your questions and find answers here.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 631
Joined: Tue Jan 04, 2011 6:21 pm

#PB_Sprite_AlphaBlending story [Solved]

Post 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: :|
Last edited by SPH on Tue Jan 13, 2026 6:17 pm, edited 1 time in total.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
miso
Enthusiast
Enthusiast
Posts: 661
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: #PB_Sprite_AlphaBlending story

Post by miso »

Use drawingmode allchannel, and plot with color rgba(0,0,0,0). The alpha channel will be the opacity/transparency.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 631
Joined: Tue Jan 04, 2011 6:21 pm

Re: #PB_Sprite_AlphaBlending story

Post by SPH »

Thank you very much !!

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
Post Reply