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 / alpha mapping

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 9th Sep 2010 15:31
What is the command to enable alpha mapping on a sprite? dbSetAlphaMappingOn doesn't seem to be working for them.
Mireben
15
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 9th Sep 2010 22:02
Try this:

dbSetSpriteAlpha
This command will set the alpha value of the specified sprite. The alpha controls how much of the sprite is present on screen and is used to create a translucent sprite. The Alpha value range is 0 to 255, with 255 being completely solid and 0 being invisible.

Syntax
void dbSetSpriteAlpha ( int iSprite, int iAlpha )
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 10th Sep 2010 00:27
That doesn't work, I just tried it and it sets the alpha of the whole sprite to iAlpha.
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 10th Sep 2010 00:28
I have an image that has transparency in it, and it's not showing up, it's showing up as white.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 10th Sep 2010 16:59
dbSetSprite

[b]

Login to post a reply

Server time is: 2024-07-02 09:21:42
Your offset time is: 2024-07-02 09:21:42