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! / 2d sprites Help plzzzzz

Author
Message
Programming Dragon
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: In my chair
Posted: 22nd Dec 2003 22:15
ok here is the thing. I make a sprite with a black background i i thought it wouldnt show the black but it did. i got everything down for my game expept the black surronding my sprite. how do i get rid of that.

Using nothing at all can somtimes be the best thing to do.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Dec 2003 22:28
Have you use SET IMAGE COLORKEY anywhere in your code to non-black?
Is the background a true black rgb(0,0,0)?
Are you using a 'lossy' format like JPG for your images?

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
Programming Dragon
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: In my chair
Posted: 22nd Dec 2003 22:49
what do you mean by lossy. I use bitmap format. and how do i get the backround of my image i made in paint to true blak?

Using nothing at all can somtimes be the best thing to do.
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 23rd Dec 2003 07:41
I can't help you if you're using dbpro, but if you are using db classic then use:

load image "bitmap.bmp",1
sprite 1,1,1

The second parameter in SPRITE is the backsave state which makes sure it doesn't leave a trail of images as it moves, and the second is the black transparency option (1=on).

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd Dec 2003 13:41
In paint there is an Edit Colours option, click that, click add custom colour, and it tells you the RGB. The first colour in Paint is black 000 anyway.

Pincho.

Login to post a reply

Server time is: 2024-05-12 07:58:51
Your offset time is: 2024-05-12 07:58:51