Thread: emitters
View Single Post
  #2  
Old 06-26-2006, 01:15 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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;
        
player.x;
        
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote