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.

DarkBASIC Professional Discussion / make sprite transparent with other color then black?

Author
Message
Tiasen
23
Years of Service
User Offline
Joined: 26th May 2003
Location:
Posted: 9th Jun 2003 03:28
hi...
is there any way to make a sprite transparent´...?
I mean if I have a pic where one half is black and the other some other color... could I then make the other color transparent..? and th eblack stays?.. if you can't do it using sprites can one do it using objects and how?

thank's /Mathias
shwuckie
23
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 9th Jun 2003 06:05
yes its easy with this command :

set image colorkey red,green,blue

where red green and blue are your rgb colour values seperated

for example to use bright pink as your 'transparent colour' you would use : set image colorkey 255,0,255
then every image must use pink for the transparent colour key

dude!!!!!!!!!!!!!!!!

optic blast! megablast! have a blast!!
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 9th Jun 2003 06:10
Hey... I posted here and my post got deleted!
Oh, well, do what shwuckie said.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!

Login to post a reply

Server time is: 2026-07-11 11:42:45
Your offset time is: 2026-07-11 11:42:45