Quote:
|
Originally Posted by excaliber7388
I've started working on a weather script, and I decided to use an emitter, to reduce lag. I've been reading the wiki, stefan's example, examples on here, and I can't figure out why this emitter isn't emitting:
PHP Code:
with (findimg(200))
{
emitter.emit();
layer=2;
emitter.delaymin = .05;
emitter.delaymax = .05;
emitter.nofparticles = 20;
emitter.firstinfront = false;
emitter.particle.lifetime = 2;
emitter.particle.image = "dr-rain2.png";
emitter.particle.mode = 1;
emitter.particle.alpha = .8;
emitter.particle.zoom = random(.3,1);
emitter.particle.speed = 10;
emitter.particle.checkbelowterrain = true;
emitter.particle.movementvector=pi*.25;
x = player.x;
y = player.y;
}
If I don't ask, I don't learn, right? 
|
If you set the delaymin and delaymax, I don't think you have to call .emit(), but if you do, you should be calling it after you set all the attributes, not before.