Source code here:
http://pastebin.com/feWDLXyT
Example here (based on samples/basic/distanceEmitter.lua):
http://pastebin.com/NbhKzXHu
I'd be happy if someone find it useful.



local init=makeParticleScript(function(_) _.r1=180-vecAngle(_.p.dx,_.p.dy) --r1 is a register end,reg) local render=makeParticleScript(function(_) _.p.x=_.p.x+_.p.dx _.p.y=_.p.y+_.p.dy _.sprite() _.sp.rot=_.r1 _.sp.sx=_.ease(0.1,3,MOAIEaseType.SHARP_EASE_IN) _.sp.opacity=_.ease(1,0,MOAIEaseType.EASE_OUT) end,reg)
Users browsing this forum: No registered users and 0 guests