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.

Newcomers DBPro Corner / DB Question - Sprites

Author
Message
flock
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: Earth
Posted: 21st Jun 2006 21:18
Is there a way to change the sprite trans from black to, say, rgb(255,0,255)?

Thanks

Game in Progress: Honor
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 21st Jun 2006 21:38
Quote: "
SET IMAGE COLORKEY

This command will set the general colorkey for all images. A colorkey allows you to specify a particular RGB colour that will be treated
as transparent by the image when used. Transparent pixels of an image are not drawn. You must use this command before loading or
grabbing an image in order that a suitable alpha map be generated from the transparent pixels of the desired image to be calculated.
The alpha map is then used to decide which pixels are drawn and which pixels are never rendered. Be aware that setting the color key
for the purpose of transparency will not work on images based on the PNG, TGA and DDS file format as these carry their own alpha
channel and describe their own pattern of transparency.

Syntax

SET IMAGE COLORKEY Red Value, Green Value, Blue Value
"

Nuff said!

Best to use PNG or TGA file formats.
D Ogre
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 22nd Jun 2006 00:13
If DBC, no. If DBPro, yes. Use what Dream And Death quoted above for DBPro.
flock
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: Earth
Posted: 22nd Jun 2006 18:53
Classic doesn't have anything on it? Even when DBC has pixel collision?

Game in Progress: Honor
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 22nd Jun 2006 20:01
Black is Ok, just use that. To have black in your image, you just use almost black.

Login to post a reply

Server time is: 2024-11-26 17:22:15
Your offset time is: 2024-11-26 17:22:15