Particle System Problem
Posted: Sat Nov 09, 2013 6:53 pm
This won't create particles on the screen for some reason. I'm new to this, did I miss anything? There are no errors.
Code: Select all
function love.draw()
x, y = love.mouse:getPosition()
image = love.graphics.newImage("Electisock.png")
particlesystem = love.graphics.newParticleSystem(image,100)
particlesystem:setLifetime(5)
particlesystem:setSprite(image)
particlesystem:setSizes(10,15,12,8)
particlesystem:setPosition(x+math.random(-10,10),y+math.random(-10,10))
particlesystem:start()
particlesystem:update(0.1)
end