Log In  


Cart #fupozunifi-0 | 2025-03-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

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

2


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:


Cart #fadejeguru-1 | 2025-03-13 | Code ▽ | Embed ▽ | No License



Wow thanks for this!



[Please log in to post a comment]