Hi.
Seems like a bug has entered since the last updates with callbacks.
Try the following script on a gameobject that hosts 2 looping particle components (#fx_1 and #fx_2)
After a second, BOTH of them are stopped.
function init(self)
particlefx.play("#fx_1")
particlefx.play("#fx_2")
self.timer = 1
end
function update(self, dt)
self.timer = self.timer - dt
if self.timer < 0 then
particlefx.stop("#fx_1")
end
end
There is no way of stopping only one component right now