You're right, it doesn't work as intendent. It just modify the 'tint' for now, so the sprite has to have the color in it for the effect to show.
- Code: Select all
InitSprite()
OpenScreen(40,40 ,0,"")
CreateSprite(0,32,32, #PB_Sprite_AlphaBlending)
StartDrawing(SpriteOutput(0))
Box(0, 0, 32, 32, RGB(255,255,0))
StopDrawing()
Procedure Handler_Redraw()
ClearScreen(RGB(255,0,0))
DisplayTransparentSprite(0,0,0,255, 255)
FlipBuffers()
EndProcedure
BindEvent(#PB_Event_RenderFrame,@Handler_Redraw())
FlipBuffers()
Will try to change this.