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 / sprite transarency query..

Author
Message
Steve Fash
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 24th Feb 2006 21:40
Hi,
I have the following code

The images I'm using for sprites have a transparency of rgb 0,0,0
However I am getting a black box drawn around the alien sprites when the mainship sprite goes over them. Can someon please point out the glaring error I probably have ?
I've decided to have a play with dbp's 2d hence the coding mess posted
Thanks
Steve
PS Sorry it's not very well commented (ie at all), but I usually add comments part way through and haven't bothered yet..

For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Feb 2006 01:29
You may need to use the SET SPRITE command to switch transaprency on.

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 25th Feb 2006 01:30
When you use .pngs you use the .pngs transparency not a black background... use a black background if the image is a .bmp.


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-24 17:31:48
Your offset time is: 2024-09-24 17:31:48