Problems with transparencies (importing sprites)

Started by ewef, Tue 26/04/2011 00:50:13

Previous topic - Next topic

ewef

Hello. I have run into some problems importing my sprites into AGS. Basically, the editor seems to be confused as to what is supposed to be transparent and what is not, so when the sprite is imported about half of it is invisible and the other half is a mess.

I made the sprites by drawing them in Paint.NET, using the magic wand tool at zero tolerance to select the area around the character, and then erasing the area to make the space transparent. I used the "top left pixel" option for the transparent color when importing (since that pixel is guaranteed to be already transparent).

When it shows me the preview, it seems to be fine, but as soon as I click "Import whole image" it shows up in the sprites page as a magenta flooded mess, with most of the sprite missing.

Any help would be extremely appreciated.

Sephiroth

#1
The magenta flooded mess will be transparent in game, all you need to do is keep the sprites background color like pink or green or anything, the transparent color will always show up as magenta in the editor. Does the sprite appear normally, fully when you run the game?

This should be in beginners technical questions unless there's a real problem about it.

ewef

The sprites would appear the same in the game, but that doesn't matter because it is fixed now. For the record, the problem was that I needed the game to be set to 32-bit color for those sprites to look correctly. AGS then asked me if I wanted to use the image's alpha channel, which fixed it.

I appreciate the help (sorry if that sounded sarcastic; I really do appreciate someone trying to help me so quickly).

Khris

The Alpha channel is only meant for semi-transparent areas, you don't really need it/32bit if you don't have anti-aliased sprite edges.
Zero-tolerance doesn't sound like AA, what happens if you use an otherwise unused color where the sprite is supposed to be transparent?

Could you post the original sprite you were trying to import?

SMF spam blocked by CleanTalk