A little "interactive experience" to see if I understood particle systems. Press "c" to fire.



Your current firework explosion effect looks like a square, since you simply used random numbers for sx
and sy
. If you want a circular effect, you can use random angles and strengths:
local strength = rnd()*3 local angle = rnd() myex.sx = strength*cos(angle) myex.sy = strength*sin(angle) |
The result:
[Please log in to post a comment]