newb Q: particle demo help...
Posted: Mon Feb 01, 2010 2:03 am
To this, how can add a circle shape to this list of particle systems and make it appear when you click? Is that even possible? I really don't get how bodies work. Worlds are easy to get though, but still. Let me know if you need the full modded demo code.
Code: Select all
------1
local p = love.graphics.newParticleSystem(part1, 1000)
p:setEmissionRate(100)
p:setSpeed(300, 400)
p:setGravity(0)
p:setSize(2, 1)
p:setColor(255, 255, 255, 255, 58, 128, 255, 0)
p:setPosition(400, 300)
p:setLifetime(1)
p:setParticleLife(1)
p:setDirection(0)
p:setSpread(360)
p:setRadialAcceleration(-2000)
p:setTangentialAcceleration(1000)
p:stop()
table.insert(systems, p)
-------2
p = love.graphics.newParticleSystem(part1, 1000)
p:setEmissionRate(200)
p:setSpeed(0.001, 0.005)
p:setSize(0.11, 0.13)
p:setColor(255, 255, 255, 5, 255, 128, 128, 220)
p:setPosition(400, 300)
p:setLifetime(1)
p:setParticleLife(2)
p:setDirection(0)
p:setSpread(360)
p:setTangentialAcceleration(2000)
p:setRadialAcceleration(-10)
p:stop()
table.insert(systems, p)