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 / Transparent Color?

Author
Message
BriereAnthony
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 22nd Feb 2011 23:25
Hello, I'd like to know if it's possible to make a color transparent from an imported imported image, or make a color transparent within my game?

Thanks for your help!
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 23rd Feb 2011 09:53
Well, the cmd is SET IMAGE COLORKEY x,x,x in xs it's RGB values. So if you want completely red to be your color key, it's

SET IMAGE COLORKEY 255,0,0

In progress of making Archery Simulator... Or maybe not simulator x]?

@There'll be a sig @
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Feb 2011 03:27 Edited at: 24th Feb 2011 03:31
Quote: "SET IMAGE COLORKEY 255,0,0"

* and make sure you set image colorkey before you load the image.

if possible, it's generally better to use .png files with built-in transparency. i dunno where you get or how you make your artwork but, if you have any say in the matter, .png is the way to go.

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
BriereAnthony
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 28th Feb 2011 18:13
Thanks for your help guys!

Login to post a reply

Server time is: 2024-11-23 02:27:52
Your offset time is: 2024-11-23 02:27:52