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! / Bites being lost?

Author
Message
ArcAngel
22
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 3rd Jul 2005 10:55
I made a bitmap for the menu of my game. Since i didn't want it stuck in the upper left corner i made it into a sprite and positioned it on the screen. But the weird thing is, it lost detail. When i just display it as Load Bitmap "Newgame.bmp", 0 it had all the detail. But when I made it into a sprite I lost detail. Here's what i did, maybe it's in the code:

"It is well that war is so terrible, or we should grow too fond of it."
"Visit my website! www.freewebs.com/stradigos"
NanoBrain
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 3rd Jul 2005 12:21
Stradigos,

Your problem could lay within the image itself. Note, that intitially any pixels in the image of a sprite holding an rgb value of 0,0,0(completely black), will be transparent. So, seeing that you have a white background, your image might look as if it now has white spots or areas upon it, therefore loosing its original idea.

To solve this problem, take a look at the set sprite command within the DarkBasic Help files. This command allows you to set specific attributes of the sprite, including the ability to turn transparency on and off.


+NanoBrain+
ArcAngel
22
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 3rd Jul 2005 13:08
thanks nano brain, that solved it. take care.

"It is well that war is so terrible, or we should grow too fond of it."
"Visit my website! www.freewebs.com/stradigos"

Login to post a reply

Server time is: 2026-06-12 11:24:06
Your offset time is: 2026-06-12 11:24:06