Transparency trouble

Started by , Thu 08/07/2004 11:58:36

Previous topic - Next topic

Jonwah

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

ScottDoom

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

Barbarian

#2
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.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

Jonwah

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  :'(

Jonwah

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

TerranRich

Is it a 256-color sprite? If not, you can use "Set transparency to color 0" to eliminate any transparency in the sprite.
Status: Trying to come up with some ideas...

Mr Flibble

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.

Ah! There is no emoticon for what I'm feeling!

SMF spam blocked by CleanTalk