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.

2D All the way! / Transparency

Author
Message
Diablo 98188
21
Years of Service
User Offline
Joined: 12th Sep 2004
Location: In front of my computer.
Posted: 21st Jul 2005 23:52
Probally a newbish question but........

Im slowly working on developing a small 2d rpg. Now, the question is, does darkbasic (classic) have a certain color, that they automaticly blt out? If so, what color is it? Or, do i have to do a command? and if so, what command is it. Thank you forr your help,

-Diablo98188


(p.s. if you dont know, blt out means to draw out or to make transparent. If you dont blt out certain colors, there would be a box around your character at all times..)

"May the fires of the underworld burn you"
- ME ^_^
pizzaman
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 22nd Jul 2005 23:45
Pure black, also known as rgb(0, 0, 0) is the colour thats made transparent.

Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 23rd Jul 2005 18:57 Edited at: 23rd Jul 2005 18:58
set image colorkey can be used to change the colour from black to any other colour of your choice.

Not sure if this is in DBC though ... try it and see.


pizzaman
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 24th Jul 2005 00:43
set image colorkey only works in DBP not DBC.

Diablo 98188
21
Years of Service
User Offline
Joined: 12th Sep 2004
Location: In front of my computer.
Posted: 24th Jul 2005 03:40
Ok, thank you, now i just need to make all the pure plack parts of my sprites to rgb(0,0,1) if i want to show that black right??

"May the fires of the underworld burn you"
- ME ^_^
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Jul 2005 07:45
Yes. Personally I like to use 1,1,1... but it doesn't matter as long as it's not 0,0,0.

Login to post a reply

Server time is: 2026-06-12 13:03:05
Your offset time is: 2026-06-12 13:03:05