Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 08/07/2004 11:58:36

Title: Transparency trouble
Post by: on Thu 08/07/2004 11:58:36
Right, I'm making a game, and I'm hand drawing the scenery, characters, objects etc. They're in black and white because.... well, because... but when I import them AGS tries to remove the white because of the transparency colour! I don't know what to do it's really annoying me because half of the character is transparent. Help me please
Title: Re: Transparency trouble
Post by: ScottDoom on Thu 08/07/2004 12:13:25
I'm not really sure on how to properly solve this problem, but I'd say just make the white a tad bit off white. For example, this color: #FEFEFE
Title: Re: Transparency trouble
Post by: Barbarian on Thu 08/07/2004 12:16:00
As an example, make the left edge of a object or character sprite image, one pixel line wider. Fill that line in with a color you want to be transparent (see through) or a color you don't need appearing on the image. Then when you import the image, you can select the option of "Transparent - Top Left Pixel", and that should do it for ya.

Edit: You could load your image into a graphic editor / paint-program. Zoom in to the very top-left pixel. Put a one-pixel dab of, let's say "red" color for the top-left pixel (that's if you don't need the color red appearing), and then when importing use option of "Transparent - Top Left Pixel" should only make the "red" color transparent.
Title: Re: Transparency trouble
Post by: on Thu 08/07/2004 12:16:47
right... well the thing is... like i said i hand drew them, so when I scan them in i can't really change it a great deal, i usualy put the picture into greyscale, shrink it down and then leave it there, the picture uses many different shades of white so different frames have different parts missing! agh this is so annoying  :'(
Title: Re: Transparency trouble
Post by: on Thu 08/07/2004 12:22:43
hey thnx! i've almost got it! The picture is totaly grey-scale so i have to find the shade of grey I'm not using, but other than that i think i'm ok now! thanks
Title: Re: Transparency trouble
Post by: TerranRich on Fri 09/07/2004 02:27:11
Is it a 256-color sprite? If not, you can use "Set transparency to color 0" to eliminate any transparency in the sprite.
Title: Re: Transparency trouble
Post by: Mr Flibble on Fri 09/07/2004 18:08:01
I know this is solved and everything, but wouldn't it have been easier to just draw the image, then in a paint program, draw and fill a coloured box around the image.

As long as the chosen colour does not appear anywhere else in the image, there is no transparency problem.