Game Development Community

Masked color?

by Matthews_30 · in Torque Game Builder · 08/15/2007 (3:07 pm) · 2 replies

Well,

i am trying to play with 2 fighters animated images.

i created both on a sqare where the character is in the middle but my problem is how to make the rest color (white) of the square that is not been used or colored does not appear in the animation?

in short, i have the fighter in several frames (8) but i want that my fighter apperas without the rest of the wehite area not part of the character. in other progamming languages it is called "Masked Color" so if the color you dont want to appears is white, you type something like Mask(x,y,z) where every letter is a value of RGB what finally gives you the color you dont want to appers and it displays only the character you want.

please i need a help.

thanks.

matt.

#1
08/15/2007 (4:56 pm)
Support for an alpha / transparency layer is built in to TGB so you don't have to use a color key like that (Game Maker style?), instead save your images as png with a transparent background.
#2
05/02/2008 (6:08 pm)
Excellent!

thx.

matt.