I seem to have a more basic problem with this. I can't change any property of the particle animation after it is created. Let say I try to set "y" to 0. no matter what syntax I try, I am not getting anywhere.
local particle_cfg = {
resources = [ "resources/mario.png", "resources/link.png" ], //file resources - comma separated
ppm = 30, //how many particles per minute will be created
x = 50, //the x location of the particle emitter
y = 100, //the y location of the particle emitter
width = 100, //the width of the particle emitter
height = 360, //the height of the particle emitter
speed = [ 100, 250 ], //randomizes the speed of the resource when it is first created
angle = [ 0, 15 ], //the angle where particles will be emitted (min, max)
startScale = [ 1, 1 ], //randomizes the scale of the resource when it is first created
gravity = 0, //gravity attached to the particle
fade = 0, //fade the alpha over time
lifespan = 10000, //how long the resource will 'live'
scale = [ 0.5, 0.5 ], //scale the resource over its lifespan
}
animation.add( ParticleAnimation( particle_cfg ) );
// try to change the y property after the animation was created
ParticleAnimation.y = 0;
This is the code I have put I n my layout file. Whatever syntax I have tried to change the value of "y" after the animation was created didn't work.
The final question is:
How do I change any property of the particle animation after it was created with the initial settings?
Any help is appreciated:)