Game Development Community

Colored sprites

by Jonathan Champagne · in Torque Game Engine · 04/07/2004 (10:21 pm) · 3 replies

Lets take the chimney smoke thats included with torque by default. If I remember correctly its a transparent png with a white puff cloud in it, this creates the smoke effect.

Is there already something implemented to colorize these sprites (ex: game/data/shapes/particles) or does anybody at least have good ideas of where I would need to make modifications before I start hunting through the whole thing? =P

#1
04/08/2004 (8:40 am)
You set the colour with the colour[] arrays in the datablock of the particles if I recall.. otherwise, you can have a look at particle.cc to do the GL code for it.
#2
04/08/2004 (9:32 am)
Phil is correct, you can do it from script.

This is a example;
Quote:
colors[0] = "0.56 0.36 0.26 1.0";
#3
04/08/2004 (12:00 pm)
D'oh, didn't look at the datablock definition :S Thank! :)