Flex2 icon indicating copy to clipboard operation
Flex2 copied to clipboard

Colours don't convert into index 0 unless it's through Sprite sheet importing

Open VAdaPEGA opened this issue 2 years ago • 3 comments

When using "Import Over Sprite", index 0 from the palette isn't being considered as the transparency colour at all, making it impossible to use an opaque image for any small changes. This isn't the case for the "Import spritesheet" function, which automatically assumes the background colour as transparent. This can get really annoying for updating any existing sprites when you mainly use a tool that doesn't support transparency (such as MSPaint) and have to rely on a separate program to remove the background colour.

Sprite example used for importing : image

Expected Result : image

Actual Result : image

VAdaPEGA avatar Jul 03 '21 16:07 VAdaPEGA

yeah this is intentional. using pixel 0 works well for a spritesheet because it usually contains multiple sprites and that pixel will not be in range of sprites to affect them.

with a single sprite that pixel is part of the sprite - there are usecases that cause issues (like importing an image of a single colour and have the tiles be that colour, rather than transparency)

it would still be nice to allow users to have this transparency detection too though, so, I'll try and have a configuration option for it in the next version

kirjavascript avatar Jul 04 '21 15:07 kirjavascript

Note that VAdaPEGA mentioned "index 0 of the palette", not pixel 0. I would assume that he is importing a palleted image using the same palette that is used in-game.

flamewing avatar Jul 04 '21 15:07 flamewing

aha, my mistake. yeah this is a bug then and I'll get it fixed

kirjavascript avatar Jul 04 '21 16:07 kirjavascript

fixed in 1.3.0

kirjavascript avatar Oct 29 '23 14:10 kirjavascript