I cant seem to get any emitter to use a gani as a particle. nothing appears on screen. Even ganis that are nothing but a single frame with a definite single image.
graalbible says the correct syntax is:
PHP Code:
emitter.particle.ani = "idle";
is there some attribute I'm not setting?
the emitter in its entirety.
PHP Code:
//#CLIENTSIDE
function onCreated()
{
if (graalversion < 4) return false;
this.visible = false;
with (findimg(200))
{
layer = 2;
emitter.delaymin = .05;
emitter.delaymax = .05;
emitter.nrofparticles = 6;
// Basic particle attributes
emitter.particle.lifetime = 2;
// emitter.particle.image = "g4_particle_spark.png";
emitter.particle.ani = "idle";
emitter.particle.mode = 1;
emitter.particle.alpha = 0.99;
// emitter.particle.zoom = .2;
emitter.autorotation = true;
// Movement
emitter.particle.angle = pi/4;
emitter.particle.speed = 8;
emitter.addlocalmodifier("once", 0, 0, "angle", "replace", 2*pi, 0);
emitter.addlocalmodifier("range", 0, 2, "zoom", "add", .8 , .8);
emitter.addlocalmodifier("range", 0, 2, "speed", "add", 8, 12);
}
}