I am trying to test this fog demo. It is not working at all. I get no errors, but no effects happen. I do get output but it seems normal.
Output:
--\> Particles.CreateEmitter(): ADDED EMITTER 'MyEmitter'
--\> Particles.StopEmitter(): EMITTER 'MyEmitter' STOPPED.
--\> Particles.CreateParticleType(): CREATED PARTICLE TYPE 'Fog'.
--\> Particles.AddParticleType(): ADDED PARTICLE TYPE 'Fog' TO EMITTER 'MyEmitter'.
--\> Particles.StartEmitter(): EMITTER 'MyEmitter' STARTED.
Code:
[code]
local Particles = require(“lib_particle_candy”)
local screenW = display.contentWidth
local screenH = display.contentHeight
local particleImagesPath = “Particle_Images/”
– CREATE AN EMITTER (NAME, SCREENW, SCREENH, ROTATION, ISVISIBLE, LOOP)
local MyEmit = Particles.CreateEmitter(“MyEmitter”, screenW/2, screenH/2, 0, true, false)
–localGroup:insert(Particles.GetEmitter(“MyEmitter”))
– START SELECTED EFFECT
Particles.StopEmitter (“MyEmitter”)
Particles.GetEmitter (“MyEmitter”).rotation = 0
Particles.GetEmitter(“MyEmitter”).x = screenW/2
Particles.GetEmitter(“MyEmitter”).y = screenH/2
Particles.GetEmitter(“MyEmitter”).x = 10
Particles.GetEmitter(“MyEmitter”).y = screenH-40
Particles.GetEmitter(“MyEmitter”).rotation = 90
–FXLibrary.AttachFog (“MyEmitter”)
–Particles.StartEmitter (“MyEmitter”)
Particles.CreateParticleType (“Fog”,
{
imagePath = “smoke_whispery_bright.png”,
imageWidth = 64,
imageHeight = 64,
directionVariation = 15,
velocityStart = 50,
velocityVariation = 50,
rotationVariation = 360,
rotationChange = 30,
useEmitterRotation = true,
alphaStart = 0.0,
fadeInSpeed = 0.5,
fadeOutSpeed = -0.2,
fadeOutDelay = 2000,
scaleStart = 0.75,
scaleVariation = 0.75,
emissionShape = 1,
emissionRadius = 30,
killOutsideScreen = false ,
lifeTime = 7000
} )
Particles.AttachParticleType (“MyEmitter”, “Fog” ,5, 99999,0)
– NEW: ATTACH SOUND EFFECT
–Particles.SetEmitterSound(“MyEmitter”, audio.loadSound(“wind.aac”), 0, true, { channel = 1, loops = -1, fadeIn = 2000 } )
Particles.GetEmitter(“MyEmitter”).x = 10
Particles.GetEmitter(“MyEmitter”).y = screenH-40
Particles.GetEmitter(“MyEmitter”).rotation = 90
–Particles.DetachParticleTypes(“MyEmitter”)
Particles.StartEmitter(“MyEmitter”)
[/code] [import]uid: 7197 topic_id: 9460 reply_id: 309460[/import]