Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Set Color Alpha

Author
Message
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jul 2008 00:27
I know DBP has this command, but there doesn't seem to be one for DGDK. Methinks we got screwed over. At least the thing was free...

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jul 2008 00:30
Well, I found a workaround - put it in a sprite, use dbSetSpriteAlpha(id, alpha)

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 17th Jul 2008 03:32
dbSetImageColorKey (int iRed, int iGreen, int iBlue);

This applies to the image and must be called before loading the image. I says it applies to all images but I have to ask if changing it changes the transparency map for a prior image.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 17th Jul 2008 04:26
It only changes images loaded afterward, from what I know.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jul 2008 20:28
That just makes a certain color completely transparent. In DB, set color alpha takes an int alpha argument.

dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 17th Jul 2008 21:56
Quote: "set color alpha"


There is no such command, which are you referring to? The Set Image Colo[b]u[/u]rkey command takes 3 arguments, R, G and B.

Login to post a reply

Server time is: 2024-11-20 17:38:38
Your offset time is: 2024-11-20 17:38:38