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.

Author
Message
eightfoot514
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 1st Jan 2003 07:51
cls rgb(255,255,255)
load image "image.bmp",1
sprite 1,1,1,1

how come when i write this and image.bmp has black in it, the black is changed to white? why does the cls white mess with the color of the image?
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 1st Jan 2003 19:08
Nope, black is seen as a transparent colour for sprites in DB. This is for when you make a sprite which isn't square, and you dont want every part of the background of the image to be seen. One solution is to change the black parts of the picture, i.e RGB(0,0,0) to less pure black,RGB(20,20,20). You can see almost no difference and it works like a charm

Whatever I did I didn't do it!

Login to post a reply

Server time is: 2024-04-25 07:27:44
Your offset time is: 2024-04-25 07:27:44