Game Development Community

Animatetexturre in particle class

by Devon Ly · in Torque Game Engine · 08/09/2004 (2:38 am) · 2 replies

Anyone know how to use animatetexture and texturelist in the particle class?

thanks

#1
08/09/2004 (4:44 am)
I have a animated particle texture i made long ago as a test
Try this

ParticleData(blah)
{
...
animateTexture = true;
framePerSec = 2;

animTexName[0] = "~data/textures/frame1"
animTexName[1] = "~data/textures/frame2"
animTexName[2] = "~data/textures/frame3"
// or moore if you want to , i have 6 on my test

..

I hope this is what you want !
#2
08/09/2004 (11:48 pm)
Beautiful that's exactly what I was looking for thx billy