emitter = 10.0
startTween("emitter", 10.0, 0.1, 10000, easeLinearIn)
function onMainLoop()
graphics.getParticles(game.CurrentScene.Objects.object).numberOfEmitted = {0.0,emitter}
if emitter <= 0.1001 then
unregisterEventHandler("mainLoop", "onMainLoop")
end
end
registerEventHandler("mainLoop", "onMainLoop")