Nifflas' Support Forum

Level Editing Support => Knytt Stories Level Editing Support => Knytt Stories - Custom Content => Topic started by: Texasman on July 20, 2009, 13:50:51

Title: transparent tilesets
Post by: Texasman on July 20, 2009, 13:50:51
I've been given a tileset with transparency to remix.

I've downloaded Paint.net to change it however whenever I do it and save the .png file the background becomes black on the Level Editor. :moody:

How can I keep the background transparent and still change the tileset?
Title: Re: transparent tilesets
Post by: AA on July 20, 2009, 19:15:55
When you're saving the new image, make sure the PNG format is set to 32 bit, as apparently Auto Detect might not work at all times. If this doesn't work, try using the GIMP.
Title: Re: transparent tilesets
Post by: Texasman on July 20, 2009, 23:51:14
That worked nicely thanks. ;)

By the way, meanwhile I was trying other stuff and painting the background as that bright pink works as well.
Title: Re: transparent tilesets
Post by: minmay on July 27, 2009, 21:09:32
If the tileset is properly transparent in the first place, GIMP won't mess it up; the same cannot be said for Paint.NET.

The Color to Alpha option is not intended to be used in that way.

The simplest way to ensure an image is transparent in GIMP is to simply give all the layers a fill color of "transparency."
Title: Re: transparent tilesets
Post by: AA on July 27, 2009, 21:12:09
Dib, I've never used that, but I understand it applies to entire layers, so I guess it's normal that all objects are affected, unless you use a different layer.

There are many ways to work with transparency in GIMP; for instance, if you need to make some tiles transparent, you could cut and paste them as a new layer at the same spot, while changing the layer's opacity.
Title: Re: transparent tilesets
Post by: AhhCobras on July 27, 2009, 21:15:40
Easier to use eraser with partial opacity, or paintbrush/pencil tool to draw at partial opacity first.
Title: Re: transparent tilesets
Post by: TechnoGeek on July 27, 2009, 21:37:18
in GIMP, the best way (imo) to make transparency is to select what you want transparent on a layer, right-click on layer and click 'add layer mask'. then, pick 'black (full transparency)' and fill white into the selection. then, right-click layer and click 'apply layer mask' and voila!
Title: Re: transparent tilesets
Post by: Pick Yer Poison on July 27, 2009, 22:16:48
In my opinion, the simplest way to do transparency in GIMP is to go to Layer>Transparency>Add Alpha Channel. This makes it so that erasing or deleting an area will make it transparent, instead of changing it to the background color.