Help me integrating Particle Candy!!

Just got particle candy…can’t get it started! What am I doing wrong?

[lua] Particles = require(“lib_particle_candy”)
—PARTICLES
Particles.CreateEmitter(“name”,60, 60, true, true, false)

– DEFINE PARTICLE TYPE PROPERTIES
local Properties = {}
Properties.imagePath = “arrow.png”
Properties.imageWidth = 32
Properties.imageHeight = 32
Properties.velocityStart = 150
Properties.autoOrientation = true
Properties.killOutsideScreen = true
Properties.lifeTime = 3000
Properties.alphaStart = 0
Properties.fadeInSpeed = 0.5
Properties.fadeOutSpeed = -0.75
Properties.fadeOutDelay = 1500

Particles.CreateParticleType (“explode”, Properties)

Properties = nil
Particles.AttachParticleType(“name”, “explode”, 1000, 10000, 10)
function mainLoop()

local Emitter = Particles.GetEmitter(“name”)
Emitter.x = car.x
Emitter.y = car.y
Emitter.rotation = math.random()*360
Particles.StartEmitter(“name”)

end
mainLoop()[/lua]
Thanks! [import]uid: 59735 topic_id: 26888 reply_id: 326888[/import]

Try this:

[lua]Particles = require(“lib_particle_candy”)

—PARTICLES
Particles.CreateEmitter(“E1”,60, 60, true, true, false)

– DEFINE PARTICLE TYPE PROPERTIES
local Properties = {}
Properties.imagePath = “arrow.png”
Properties.imageWidth = 32
Properties.imageHeight = 32
Properties.velocityStart = 150
Properties.autoOrientation = true
Properties.killOutsideScreen = true
Properties.lifeTime = 3000
Properties.alphaStart = 0
Properties.fadeInSpeed = 0.5
Properties.fadeOutSpeed = -0.75
Properties.fadeOutDelay = 1500

Particles.CreateParticleType (“explode”, Properties)

Particles.AttachParticleType(“E1”, “explode”, 1000, 10000, 10)

local EmitterE1 = Particles.GetEmitter(“E1”)
Particles.StartEmitter(“E1”)

Emitter.rotation = math.random()*360
Emitter.x = car.x
Emitter.y = car.y

function mainLoop()
Particles.Update()
end
mainLoop()[/lua] [import]uid: 40033 topic_id: 26888 reply_id: 109139[/import]