Game Development Community

Particle Question

by Bryce · in Torque Game Engine · 11/08/2009 (12:26 am) · 3 replies

Hi all,

I was wondering if it's possible to have two different ParticleDatas spawned from an emitter. I'm working on my muzzle flash effect, so that I can have the flame and a puff of smoke at the same time. In the emitter datablock, I tried specifying the two ParticleDatas separated by the word TAB, but that's not working. Can someone help me out here? I'm using TGE 1.4.2.

Cheers,
Bryce

#1
11/08/2009 (10:50 am)
I haven't tried it, but have tried putting extra textures to make it multi colored. (fireworks) Just seperate the names with a colon. " : "

MyDatablock1 : MyDatablock2;
#2
11/08/2009 (11:15 am)
Quote:I tried specifying the two ParticleDatas separated by the word TAB

Well that should work. ParticleEmitterData can take a (tab or space delimited) list of multiple ParticleData types.
particles = "partData1 partData2 partData3";
Any console errors showing up when loading the script in question?
#3
11/08/2009 (12:36 pm)
Ah, got it. Clever me had the emitter datablock defined in two different scripts :P

Thanks for the help!