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 / Animation Transparency

Author
Message
king koder
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 19th Apr 2008 19:12
Hello! My first day on GBPro!
Im simply trying to find out how the different commands work.

I've started working with sprites, and drew a 12 image long image strip. I also gave each image a background which I don't want appearing in the exe. The transparency is a "bright pink" color, or (255,192,255).



I've tested the transparent color in Paint, and it returned 255,192,255. However, when I run the exe, the color is not transparent. I know something's wrong with the code above, anyone clue me in a bit?

Thanks ^^
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 20th Apr 2008 07:10 Edited at: 20th Apr 2008 07:10
this part of the set image colorkey help info is relevant:
Quote: "You must use this command before loading or grabbing an image"


Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
king koder
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 20th Apr 2008 08:10
I moved the code up one line and it still does not work. Perhaps I should try it with another color (see if it works...).

king koder
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 20th Apr 2008 08:16
Nevermind, I read the description a little closer at it said that this does not work with PNG (which is what I'm using), and it uses its own transparency method (which I am unaware of).

If I might switch to BMP, those images will get pretty big.
If I might switch to JPEG, huge fall in quality.
Twinsen
18
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 20th Apr 2008 15:29
download IrfanView, load your image and save it to .PNG but when saving, be sure to set these 2 options:

the quality must be set to the maximum
"save transparent color" must be checked

now when u save, you will be prompted to select the transparent color ... just click on any pink (255,192,255) area and voila !!!

Could you help me treat my injured Dino-Fly ?
king koder
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 21st Apr 2008 07:22
Thanks for your advice Twinsen, but I searched all around the site for solutions.

One solution I found was using GIMP, where I was able to edit the transparency of the image itself, GIMP is much like a free version of Photoshop.

I saved the image after removing the background color, and it works fine now. ^^

Login to post a reply

Server time is: 2024-11-25 06:42:28
Your offset time is: 2024-11-25 06:42:28