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! / color key help

Author
Message
Black Shadow
21
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 6th Dec 2004 10:15
anyone know how to set the color key to more than one color?
dark coder
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 13th Dec 2004 06:39
no


dj chainz
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 14th Dec 2004 02:00
u cant

but u cud use memblock editing to change the colors to the 'colorkey' colour, so it wud be in effect the same

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 14th Dec 2004 22:39
if background is black set image colorkey 255,0,0
load some images - red
set image colorkey 0,0,255
load more images - blue but they have red
set image colorkey 0,0,0
load more images - black is transparent so they look normal

i tested the above and it works

during the game - delete image - change colorkey - reload image

that should work too
dark coder
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 14th Dec 2004 23:33
he means removing multiple colours from the specified object/image


wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 15th Dec 2004 00:55
ok, my mistake.
just a thought, if you load image minus blue and green
paste image
get image minus red and green
would the image be missing cyan and yellow
I don't want to check it out tho
wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 15th Dec 2004 01:03
too many years in the printing business i think
Black Shadow
21
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 4th Jan 2005 05:55
I tried the set image color key command but it didn't work I think it is only for DB-Pro. (I Have DBC)
dj chainz
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 4th Jan 2005 16:23
its a DBP only command.

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
Black Shadow
21
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 5th Jan 2005 07:07
I know but does anyone know how to make a function that can act like changing the color key?
BlinkOk
22
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 6th Jan 2005 04:49
in this thread the guy is trying to set colors to transparent using memblock;
http://forum.thegamecreators.com/?m=forum_view&t=33270&b=4
he doesn't get an answer to his question which is unfortunate coz i'd really like to know how to do it as well.

P4 2.8Ghz, 2Gb, 128Mb Radeon Pro, Dark Basic PRO
wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 6th Jan 2005 09:14
Quote: "I tried the set image color key command but it didn't work I think it is only for DB-Pro. (I Have DBC) "

you can try this, I don't know if it will work in dbc tho. use any image you have.the colorscale.bmp is one I made 100x450. you can change it to get the screen image or any part of it. make sure the final paste image is at the correct x,y values.
pizzaman
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 6th Jan 2005 09:20 Edited at: 6th Jan 2005 09:22
Heres some examples

DBP

Example



Just the function




DBC (enhanced) - (This should work but I have not tested it)

Example



Just the function



Hope this helps

EDIT Damn you wmf
wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 6th Jan 2005 09:23
correction

i forgot, this is extremely fast on my pc.
wmf
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 6th Jan 2005 09:27
sorry pizzaman now there is two choices.
by the way, how come I don't have an edit button. anybody know.
Black Shadow
21
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 11th Jan 2005 07:41 Edited at: 11th Jan 2005 07:42
Thanks Pizzaman that was a real help.

Login to post a reply

Server time is: 2026-06-11 17:30:52
Your offset time is: 2026-06-11 17:30:52