Game Development Community

Blending colors for sprites

by Kevin Epps · in Torque Game Builder · 03/06/2007 (2:09 pm) · 1 replies

How do you set a color to where a sprite would fade into the colour? Like if I had a sprite, and I set the color to white.

At 1.0, the sprite would be totally white, but at 0.5, you would see the sprite, but with a shade of white over it?

#1
03/06/2007 (2:43 pm)
@Kevin, your talking about alpha transparencies not blending ...

There's an example of this in one of the demo's where they create a 'search light' style level ...

Basically the entire scene is 'black' and you can 'see through' the blackness where a specific sprite is located ...