Particle effects always cycle
by John F · in iTorque 2D · 12/06/2008 (9:09 am) · 6 replies
When I run my game on the Mac using the TorqueGameBuilder that comes with iTGB my particle effects all cycle even though they are set to stop. This happens at both design time and at run time. Running under the iPhone simulator however doesn't have this problem. Is anyone else seeing this? Is it a know problem? I've tried it on two different Macs so I don't think it is an installation problem. I couldn't find a mention of it when I searched the forums.
#2
12/18/2008 (5:25 pm)
I've tried setting %this.setUsesPhysics(true) on particle effects and that didn't change the cycling problem, so perhaps it's nothing to do with the physics optimizations.
#3
Also, there is a callback onStopEffect(%this) which is called when the effect is over.
If the callback works you can try to stop it manually . akward but it might work.
Or you can schedule a call that will stop the effect. that may work better.
Just trying to think on ways around it.
12/18/2008 (5:35 pm)
Did you try "Kill"? I wonder if that works.Also, there is a callback onStopEffect(%this) which is called when the effect is over.
If the callback works you can try to stop it manually . akward but it might work.
Or you can schedule a call that will stop the effect. that may work better.
Just trying to think on ways around it.
#4
12/18/2008 (6:13 pm)
Update, this glitch has been fixed and it will go out with the next release.
#5
12/18/2008 (9:17 pm)
That's good news. Can you gives us a hint about the timing of the next release?
Conor O'Kane
cokane.com