I have a weird problem to debug, I’m creating through a factory a GO containing an particlefx and a following script:
function init(self)
particlefx.play("#fx")
end
function final(self)
particlefx.stop("#fx")
print("Deleted")
end
Then, when I delete this object I assume the particlefx should stop playing, but it isn’t, even when the “Deleted” is printed Where could I made a mistake?
I’m creating this object in module:
M.charge_fx = factory.create("#charging")
and then deleting it:
go.delete(M.charge_fx)