Particles chasing sprite
by Shiraz · in Torque X 2D · 04/03/2007 (1:20 pm) · 6 replies
I've seen this asked in another forum but it never got resolved. I've created a "haze" around my character with particle effects but when he moves around the haze follows him around instead of staying with him. How do I get rid of the lag?
T2DParticleEffect haze = (T2DParticleEffect)(TorqueObjectDatabase.Instance.FindObject("HazeEffect") as T2DSceneObject).Clone();
haze.PlayEffect(true);
haze.Mount(player, "HazeLink", true);
haze.SnapToMount();
haze.TrackMountRotation = true;
haze.InheritMountVisibility = true;About the author
#2
04/05/2007 (11:55 am)
What properties affect a particle's life?
#3
Edit: Almost forgot, whatever that Attach property is called, you want it to be true.
04/12/2007 (1:59 am)
I think what you're talking about is AttachParticle or AttachPosition or whatever the heck that property is called. It's a checkbox on the emitter I believe. I'd confirm the name, but I'm at home and don't have TX installed here for sanity reasons.Edit: Almost forgot, whatever that Attach property is called, you want it to be true.
#4
04/12/2007 (3:08 pm)
When I check the Attach Position checkbox the particle effect doesn't show up at all. I think Josh may be right about the life but I can't find any properties that handle that.
#5
12/19/2009 (11:08 pm)
Sorry to raise this from the dead, but I have a super newbie question. How can i work with the particles direct from the source like Shiraz are doing? Thanks in advance!
#6
You can also do anything you want through code just as you would with any TorqueObject.
12/23/2009 (2:21 am)
Do you mean through code or through the builder? Everything in this thread can be done through the builder. Open the Docs, they are in your install folder, and look at the section Particle Effect Guide.You can also do anything you want through code just as you would with any TorqueObject.
Torque Owner Josh Butterworth