ID:136273
 
Greetings. On my current game, I would like to be using .png buildings/structures instead of making them tile by tile. But when I do try to make the building with a 192,192,192 background, the grey still appears. When I change it to a .bmp, it works perfectly fine and the grey is gone. However, the .bmp is much larger of a size than the .png, and my players would not appritiate the larger size of game. Is there any way to use a .png with a clear background?

-Chris
Dracon wrote:
Greetings. On my current game, I would like to be using .png buildings/structures instead of making them tile by tile. But when I do try to make the building with a 192,192,192 background, the grey still appears. When I change it to a .bmp, it works perfectly fine and the grey is gone. However, the .bmp is much larger of a size than the .png, and my players would not appritiate the larger size of game. Is there any way to use a .png with a clear background?

.png has built-in transparency, so it doesn't use 192,192,192 as a mask color. Instead whatever you tell the .png to use as a transparent color (via your editor) will be it.

Lummox JR
Not all paint programs are created equally :P
Seriously though you'll need a program where you can set the transparency color before you save it. I use Paint Shop Pro 7, as it has a whole menu dedicated to Color.
Then I cut down on file size by exporting through the builtin PNG Optimizer.

LJR
In response to LordJR
Six words:

Paint. Shop. Pro. Eight. Beta. w00t!
In response to Crispy
One word, plus an extra for good luck
Paint, w00tness!!