particles
by Draco Tempus · in Torque 2D Beginner · 04/15/2013 (5:06 pm) · 5 replies
So I am now working with particles. Sorry beforehand if i ask too many questions.
I have this
They don't disappear after they play. They just keep looping. I tried a few different things. No luck so far.
I have this
<ParticleAsset
AssetName="bloodSplatter1"
LifeTime="1"
LifeMode="KILL">
<ParticleAssetEmitter
EmitterName="blood"
EmitterType="POINT"
SingleParticle="1"
Animation="@asset=mainModule:blood1Animation"/>
</ParticleAsset>They don't disappear after they play. They just keep looping. I tried a few different things. No luck so far.
About the author
#2
also changed it to this
Still loops.
I just want to play the effect once with nothing duplicating about it or shooting off to the sides. It is weird if i delete everything but the basics. It plays 10 or 20 of the effect and emits them in different directions. Then I put singleparticle in and it now plays without making 20 of them...but it keeps going.
Basically what is the very basics you need just to play the effect 1 time without anything emitting from it and the effect playing in 1 spot without moving in a direction.
04/16/2013 (6:06 am)
%blood = new ParticlePlayer();
%blood.Particle = "mainModule:bloodSplatter1";
%blood.setPosition(%sceneobject.getPosition());
%blood.setSizeScale(%sceneobject.Size/2);
myScene.add(%blood);I dont think so. I am using the one from the tutorial...That is as much as I know about particles.also changed it to this
<ParticleAsset
AssetName="bloodSplatter1"
LifeTime="1"
LifeMode="KILL">
<ParticleAssetEmitter
EmitterName="blood"
EmitterType="POINT"
Lifetime="0 1"
SingleParticle="1"
Animation="@asset=mainModule:blood1Animation"/>
</ParticleAsset>Still loops.
I just want to play the effect once with nothing duplicating about it or shooting off to the sides. It is weird if i delete everything but the basics. It plays 10 or 20 of the effect and emits them in different directions. Then I put singleparticle in and it now plays without making 20 of them...but it keeps going.
Basically what is the very basics you need just to play the effect 1 time without anything emitting from it and the effect playing in 1 spot without moving in a direction.
#3
04/18/2013 (5:35 pm)
Bump? Still can't figure out all the different particle fields.
#4
04/19/2013 (5:10 pm)
Try looking at the truck toy's exhaust particle asset:<ParticleAsset
AssetName="Exhaust">
<ParticleAssetEmitter
EmitterName="smoke"
FixedForceAngle="90"
OldestInFront="1"
Image="@asset=ToyAssets:Particles4"
Frame="0">
<ParticleAssetEmitter.Fields>
<Quantity
Keys="0 10" />
<EmissionArc
Keys="0 15" />
<EmissionAngle
Keys="0 180" />
<LifetimeVariation
Keys="0 1" />
<Speed
Keys="0 1.5" />
<SizeXVariation
Keys="0 2" />
<FixedForce
Keys="0 4" />
<SizeXLife
Keys="0 0 0.2 1 0.5 2 0.9 1 1 0" />
<FixedForceVariation
Keys="0 1" />
<SpeedVariation
Keys="0 1" />
<AlphaChannel
Keys="0 0 0.1 0.15 0.8 0.15 1 0" />
</ParticleAssetEmitter.Fields>
</ParticleAssetEmitter>
</ParticleAsset>Perhaps adapt this particle asset to meet your needs?
#5
Also looking at it I don't know much but I am thinking it continues to run with different sizes and speeds and life. Also because it is the exhaust from the car.
Alpha Channel I get it is transparency. Why does it have 8 numbers though.
Why does sizeXLife have 8 numbers.
I would of thought it would have 10 numbers because of quantity.
what If I don't want anything else except for the particle to play once and die. I guess I have to wait for the wiki to be updated. It seems like that would be the most basic. But If I remove the whole emitter fields and set the particle to LifeMode Die. It just keeps playing.
04/20/2013 (7:32 am)
Thanks, but doesn't help me. I took mine from the ToyBox also and tried to adapt it. The problem is I don't understand all the fields. Also looking at it I don't know much but I am thinking it continues to run with different sizes and speeds and life. Also because it is the exhaust from the car.
Alpha Channel I get it is transparency. Why does it have 8 numbers though.
Why does sizeXLife have 8 numbers.
I would of thought it would have 10 numbers because of quantity.
what If I don't want anything else except for the particle to play once and die. I guess I have to wait for the wiki to be updated. It seems like that would be the most basic. But If I remove the whole emitter fields and set the particle to LifeMode Die. It just keeps playing.
Community Manager Michael Perry
ZombieShortbus