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 / Using Sprites

Author
Message
fizgog
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location:
Posted: 23rd Nov 2002 00:56
Just a quick question

is black the only colour sprites can have for transparancy or can you specify other colours.

PS A search facilty that someone else mentioned seems like a good idea

Cheers
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 23rd Nov 2002 01:20
I think Set Image Colorkey may help you.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 23rd Nov 2002 01:46
Just tested it, and that does'nt work, sorry.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
NickIgoe
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: A bar somewhere
Posted: 23rd Nov 2002 02:13
Easily confused is right but you must set an RGB Value to it
Set Image Colorkey rgb(0,0,0)
Super Teo
21
Years of Service
User Offline
Joined: 18th Sep 2002
Location: Sweden
Posted: 23rd Nov 2002 02:28
I use Set Image Colorkey 255,255,255 thou and it works great. No need for rgb()
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 23rd Nov 2002 02:37
Actualy Set Image Colorkey rgb(0,0,0) gives a parameter error when compiling.

However I've got it now.

You must use Set Image Colorkey red value,green value,blue value BEFORE you load your images.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)

Login to post a reply

Server time is: 2024-03-28 12:06:19
Your offset time is: 2024-03-28 12:06:19