Alpha blending without Sprite3D?

Advanced game related topics
Fleath//
User
User
Posts: 47
Joined: Sun Feb 13, 2005 11:37 am
Location: Australia
Contact:

Alpha blending without Sprite3D?

Post by Fleath// »

I decided to rewrite one of my projects as the code was pretty sub-par, I got to removing the Sprite3D functions because they weren't used to anything overly vital and they pushed up the system requirements for the program (my goal was a lightweight and fast program)
I've only come across one need for this, I have an area of the screen darken/lighten in relation to the time, to reflect daylight, using alpha blending with a dark overlay sprite...
I'm looking for a way to do this outside of Sprite3D, is it possible?

Code: Select all

crush()
kill()
destroy()
Image
Add to PB logo to your game today.
venom
User
User
Posts: 56
Joined: Fri Jul 25, 2003 1:54 pm
Location: Australia

Post by venom »

These commands?

DisplayAlphaSprite
DisplayShadowSprite
DisplayTranslucideSprite
Fleath//
User
User
Posts: 47
Joined: Sun Feb 13, 2005 11:37 am
Location: Australia
Contact:

Post by Fleath// »

Hah...my own stupidity to blame there :D
I'd checked out the first two, but not noticed the third...which happens to be exactly what I need. Thanks for the pointer, good sir.

Code: Select all

crush()
kill()
destroy()
Image
Add to PB logo to your game today.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply