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! / Transparency Settings of an Image

Author
Message
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 1st Oct 2004 10:32
Okay, I am getting really pissed. I have made a hud in PSP 8, I saved as .PSP image. I exported it as .PNG with alpha channel setting to make anything white transparent. I load into DBPro, it\'s got a white backgrond. When I use the paste image command I do:
with the flag for transparency, still there\'s a white background. Then I try to use the set image colorkey command, but still there is a white background, does anyone know what exactly is wrong? It makes the game look ugly with the white background and I really like the hud I\'ve made, yet no matter what my image won\'t have a transparent background.
I even tried to use .GIF instead but same result. Does this mean I will have to use .BMP?

Got anime?I do.
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 1st Oct 2004 11:09
Can no one help me? I know I need to give the post some time, but I have been hacing this problem for a long time.

Got anime?I do.
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 1st Oct 2004 11:29
Try following the instructions in this post.
http://forum.thegamecreators.com/?m=forum_view&t=27583&b=4

it's cool to hate
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 1st Oct 2004 21:03
Thanks, I'll take a look.

Got anime?I do.
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 1st Oct 2004 21:08
Just looked at it, does that mean instead of pasting the image I could sprite it, but still have it be a hud?

Got anime?I do.
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 1st Oct 2004 21:34
Both sprites and paste image with the transparancy flag will work.

Just noticed an error with your code. The transparancy flag for paste image should either be 0 for no transparancy or 1 for transparancy.
Try.
paste image 8,1,380,1

Ignore the bit in the help that says "all coloured pixels of RGB(0,0,0) are not drawn", it is wrong.

it's cool to hate
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 2nd Oct 2004 05:29
Oh, thanks. The reason I had the RGB was because somewhere, not on this boards someone set that I was supposed to define what color should be transparent.

Got anime?I do.
gothboy 101
22
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 2nd Oct 2004 14:27
i tried that but my image still didn't turn transparent

www.dragonseige.tk
http://dragonseige.tk
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 2nd Oct 2004 22:08
Oh. your probably experiancing the same problem as I am, I think it's cuz I need to set it to existing layers' transparency and your image was only a background layer.

Got anime?I do.
Cellbloc Studios
22
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 3rd Oct 2004 01:05
AB:

http://forum.thegamecreators.com/?m=forum_view&t=40105&b=1

I asked the SAME question about a week ago or so.

-This is my boomstick!
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 3rd Oct 2004 01:44
Thanks for trying to help Cellbloc but I've dealt with it, but now a question can I ghost images, because to indicate combos in part of my RPG I need my 3 images to turn translucent so you can tell that it's time to continue the combo.

Got anime?I do.
Cellbloc Studios
22
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 3rd Oct 2004 02:04 Edited at: 3rd Oct 2004 02:16
May I ask what you did you fix it in Photoshop? I had to download PSP to get it to work and I thought that was silly to do since I have Photoshop.

-This is my boomstick!
gothboy 101
22
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 3rd Oct 2004 02:06
my problem is the white of the image still shows

www.dragonseige.tk
http://dragonseige.tk
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 3rd Oct 2004 04:48 Edited at: 3rd Oct 2004 04:49
Quote: "Thanks for trying to help Cellbloc but I've dealt with it, but now a question can I ghost images, because to indicate combos in part of my RPG I need my 3 images to turn translucent so you can tell that it's time to continue the combo."


If you change from PASTE IMAGE to using sprites then it's easy. Just use SPRITE ALPHA to change the translucency of the sprite.

If you stick with images it is more difficult. One way would be to use an image memblock and change the alpha value of each pixel. Another way would be to make a series of images with different tranparancy levels.

it's cool to hate
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 3rd Oct 2004 06:17
Thanks so how do I make my image into sprite, I'm not really one to know these 2D commands. And gothboy can you post the image code and if so can you email me the image with multiple layers, one being transparent? I think I can help you then.

Got anime?I do.
pizzaman
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 4th Oct 2004 21:36
This will make a sprite and position it onscreen

sprite SpriteNum, xcoord, ycoord, ImageNum

Login to post a reply

Server time is: 2026-06-11 17:32:13
Your offset time is: 2026-06-11 17:32:13