Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 18/11/2003 15:07:23

Title: troubles with my character
Post by: on Tue 18/11/2003 15:07:23
 :-[
This might sound very silly but, newbie as I am, I cant  manage a way to remove the backgrounf from my character. I mean, I drawed it in CorelDraw in a white paper but then when I import it to AGS my main character appears with the white square around!!.
I have checked the manual but I cant find anything related to it. I know it must be a very stupid problem, and very easy to solve since nobody else complained about it (as far as I have read the forum, at least until page 18) but please help me!!

thanks,
kierslowsky
Title: Re:troubles with my character
Post by: Timosity on Tue 18/11/2003 15:18:37
when importing a sprite there is a drop down menu that says transparent colour, there you can select which pixel will be transparent for the whole sprite: top left, bottom left, top right, bottom right, or palette index 0

they refer to the colour of the pixel in that position, if you don't want any transparency you can select palette index 0

Hope that solves your problem

~Tim
Title: Re:troubles with my character
Post by: on Tue 18/11/2003 15:27:13
Hi Tim.
I will try later when I go back home from job. Dont know if it will work or not but thnks anyway for the quick response!!!

kierslowsky
Title: Re:troubles with my character
Post by: scotch on Tue 18/11/2003 15:48:32
It probably would have done it automatically if you had it on a pure whiet background, the problem may be that scanning it from paper you've just got a whitte paper background that isn't all of one colour, you'd have to make sure that character is on a pure colour background and not just one that looks the same colour to a human.
One way might be to use a fill tool to fill it with a colour, with a tolerance setting of 50 or so, to make sure it fills all the off white bits.
Title: Re:troubles with my character
Post by: on Tue 18/11/2003 16:00:13
YEAH, I think thats is the exact problem. Since I didnt scan it (I took a digital pic), the background of the character is not pure white. But I tried to solve this with CorelDraw and its a very difficult program for a newbie!! ha ha, I dont know exactly how to do it

thanks anyway!!!
Title: Re:troubles with my character
Post by: on Tue 18/11/2003 17:29:32
I think I know what your problem is. I'm assuming you used Corel Draw's Export function, the friendly folks at Corel could have made our lives a lot easier by adding the same transparent background checkbox they gave us for bitmap conversions, unfortunately we'll have to do it the hard way.
First of all make sure that when you export your image, you set Anti-Aliasing to none (don't want any funny glowing edges, or do you? could be cool depending how you use it...)
open Corel Photopaint, and load your image, set mask type for additive, and magic wand mask the white area behind your char, and also mask any under arm areas, etc.
Invert the mask Mask>Invert, we want the guy (or girl) selected, not the white.
Save the image as a filetype capable of keeping the masking, like a gif or something, or fill the white area with that bright pink they use for masking the sample char.
lemme know if that works for ya.
Joelman
Title: Re:troubles with my character
Post by: on Thu 20/11/2003 13:47:42
thanks Joelman, Scotch and Timosity for the help!!!.
Finally what I did is painting the whole background in black, pixel by pixel (about 1 hour) and set the transparent pixel (a black pixel, of course). And now my ninja looks really cool!!!!!!!!! :D

kierslowsky
Title: Re:troubles with my character
Post by: Joelman on Fri 21/11/2003 22:32:57
Yes! Ninja! Rock!  ;D |..|,
Title: Re:troubles with my character
Post by: on Tue 25/11/2003 06:03:03
yeah, I tought it might be cool to use a ninja in an adventure, not in an action game, although I want it to have little action elements and superb animations (if I can lol).

kierslowsky
Title: Re:troubles with my character
Post by: Joelman on Tue 25/11/2003 22:20:32
thats awesome dude, original too, follow up on that one.