#31999 - Issac - Thu Dec 16, 2004 10:06 pm
Hey, im new here... My name's Tim.. not Issac.... :P
anyways...
Sorry if this has been brought up before... I searched, but didn't find what I was looking for..
so here goes:
How do I make a transparent sprite... I mean, like a ball...
I am using the tutorial www.webbesen.dk/gba
but I cant get any transparent color!! the ball (its a pong game for now) has a border like a square... but i want it to be transparent...
hmm... please ask if there is insufficient information...
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??
#32000 - Akolade - Thu Dec 16, 2004 10:11 pm
Make sure your "transparent" color is index color 0 in your palette.
Typically, in your paint program, you make that color something ugly that stands out, traditionaly bright magenta.
#32003 - Issac - Thu Dec 16, 2004 10:20 pm
ok...
I gotta try it at once...
Ill ask more if needed ;)
Thanks!
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??
#32031 - dj-ceejay - Fri Dec 17, 2004 11:37 am
Remember if you are using Photoshop, the palette is upside-down, colour 0 is actually in the bottom right hand corner.
_________________
Fruit Machine Games:
http://www.fmsoftware.info/
#32033 - Issac - Fri Dec 17, 2004 12:10 pm
umm i tried.. but i couldn't get it to work...
The guide I use tell me to use indexed colors...
and I'm not sure how to change which color who should be transparent...
can any of you tell me like i were a 3 year old child? :P
thanks!
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??
#32034 - dj-ceejay - Fri Dec 17, 2004 12:22 pm
What graphics program are you using?
I can tell you how to do it with Photoshop if you are using it.
_________________
Fruit Machine Games:
http://www.fmsoftware.info/
#32042 - Issac - Fri Dec 17, 2004 2:00 pm
oh.. forgot that.. Im using Photoshop ;)
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??
#32046 - dj-ceejay - Fri Dec 17, 2004 3:16 pm
Open your sprite.
Go to 'Image -> Mode -> Index Colours'.
Click OK if it asks you to 'Flatten Layers'.
In the 'Palette' drop down box choose 'Custom'.
Click on the bottom right hand square of the 'Color table'.
Click the transparent colour on your sprite or use the color picker then click OK.
If your transparent colour appears twice in the colour table remove the other one - click on it and select another colour.
If you do not do this step Photoshop will use the first colour in the palette it comes to (the top left).
Click OK to the 'Colour Table'.
On the 'Indexed Color' dialog 'Colors' should be 256.
Click OK to the 'Indexed Color'.
Save your sprite as a PCX file.
_________________
Fruit Machine Games:
http://www.fmsoftware.info/
#32082 - Issac - Sat Dec 18, 2004 1:33 am
ok thanks!
I will test that as soon as I have access to photoshop again..
thank you, Im sure it will work now :)
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??