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.

DarkBASIC Professional Discussion / sprite using image alpha?

Author
Message
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 24th Feb 2010 18:35
Hey all, is is possible to have a sprite use the alpha channel of the image for transparency.

bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 24th Feb 2010 20:09
Sorry, this was meant to be in dbpro!

LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 24th Feb 2010 21:36
There is a wealth of information on this forum regarding the subject. Type 'alpha channel' into the search box and you will see.

Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Feb 2010 01:31
Yes. I believe it's standard when you create a sprite, and the alpha channel is automatically used.

I meant to click on the DBPro forums, so you're in luck XD


bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 25th Feb 2010 01:33
I fixed it. I think my main issue was that I loaded it as a bitmap to break it up. I also needed to set the bitmap format to enable transparency.

Check the WIP in the next few days and I'll reveal what I was workin on

Login to post a reply

Server time is: 2025-06-28 15:02:23
Your offset time is: 2025-06-28 15:02:23