Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 25/10/2004 11:44:01

Title: Problem importing sprites
Post by: on Mon 25/10/2004 11:44:01
I tried looking at the tutorials, but I hardly see anything covering characters/sprites. I tried searching the forum, but for some reason it appears to be down. I'd much rather just ask the question, be directed to the answer, and have this thread locked instead of trying to find the information that may not even exist. And I DID look.

So now that I've tried to cover my ass, I'll just ask: Sometimes, when I try to import a sprite, the image just shows up as transparent. It's not just part of the image (meaning, a specific color), but the entire image. Other sprites and/or .bmp files will import just fine.

So, what exactly would cause some images to just not show up, and how can I fix that?

Thanks in advance. And just in case, I apologize if this was a bad question.
Title: Re: Problem importing sprites
Post by: Ishmael on Mon 25/10/2004 13:20:13
For future reference, you might want to have a look at http://bfaq.terranx.com for the AGS Beginner's FAQ. I'm not sure if it covers this problem though...

What are the problem sprites like? A single color? I think bright pink is always counted as transparent, even if you use the "Palette index 0" option in the sprite import dialog, so the transparent color is not picked from any corner of the sprite. Could have something to do with this, or then not, as we don't know what the sprite is like, but sounds like a bug in AGS or some other error related to the system rather then the sprite... can't say...
Title: Re: Problem importing sprites
Post by: on Tue 26/10/2004 01:15:44
I get a "Page cannot be displayed" message when going to that link.

I was just testing out the program (not yet ready to get in and make a game), but I had a little face I'd made. I think it's made up of 10 or 11 colors, and none of them are white or bright pink (or pink at all). When I try to import it, it shows the rectangular shape of the space the sprite would take up, but it's empty.

Oddly enough, I'd made ANOTHER face the exact same way, and it imports without a problem. I made both using Photoshop, and they're pixel images (meaning, I drew them pixel by pixel with basic colors. Nothing special done to them), saved them as .jpg to perserve the sharp colors, and then converted them to .bmp.
Title: Re: Problem importing sprites
Post by: Edwin Xie on Tue 26/10/2004 06:34:02
You can try making the weight of the pixels 2. And BTW, the site is http://bfaq.terran-x.com/
Title: Re: Problem importing sprites
Post by: Gilbert on Tue 26/10/2004 07:13:39
I can be related to the BMP's colour depth, check that you saved them as 8bit or 24bit BMPs.

Quote from: Jamesman on Tue 26/10/2004 01:15:44
Nothing special done to them), saved them as .jpg to perserve the sharp colors, and then converted them to .bmp.
Please don't, if you can save them as BMPs, just save them directly as BMPs, saving them as JPGs first just create unrecoverable detail loss, and that's the main reason JPG import was removed from AGS.
Title: Re: Problem importing sprites
Post by: on Tue 26/10/2004 11:52:24
OK, now I don't seem to have any problem, not even with the images that I had tried before. Maybe it was just a visual glitch with the program?

Thanks for the advice on just saving directly to BMP, too. Don't ask my why I was doing it the long way, but the end results both seem to be exactly the same.

Thanks for the help. Still don't know why everything's fine now, though. Heh.