View Single Post
  #1  
Old 11-15-2010, 11:35 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Particle Emitters Disappearing + Level Changing

Alright here's my effect:

PHP Code:
if (created || playerenters || timeout) { 
  
with (findimg(50)) {
    
x = player.x;
    
y = player.y;
    
attachtoowner = true;
    
attachoffset = "-2.5,-2,0";
    
image = "light2.png";
    
layer = 3;
    
red = .2;
    
green = .5;
    
blue = 0;
    
alpha = .9;
    
zoom = .4;
    
layer = 2;
    if (
particleeffectsenabled) {
      
emitter.delaymin = .4;
      
emitter.delaymax = 1;
      
emitter.nrofparticles = 1;
      
emitter.firstinfront = false;
      
emitter.attachposition = true;
      
emitter.continueafterdestroy = true;

      
emitter.particle.lifetime = .5;
      
emitter.particle.image = "g4_particle_cloud.png";  
      
emitter.particle.red = 0;
      
emitter.particle.green = 1;
      
emitter.particle.blue = 0;
      
emitter.particle.alpha = .9;
      
emitter.particle.zoom = .5;
      
emitter.particle.speed = 0;

      
emitter.removemodifiers();
      
emitter.addlocalmodifier("once",0,0,"x","add", 2, 2.5);
      
emitter.addlocalmodifier("once",0,0,"y","add", 1, 2);
      
emitter.addlocalmodifier("once", 0, 0, "spin", "replace", 1, 3);
      
emitter.addlocalmodifier("once", 0, 0, "zoom", "replace", .5, .8);
      
emitter.addlocalmodifier("once", 0, 0, "alpha", "replace", .6, .9);
      
emitter.addlocalmodifier("once", 0, 0, "green", "replace", 1, 1);
      
emitter.addlocalmodifier("range", 0, .5, "alpha", "add", -1, -1);
    } 
  }
  
setTimer(1);
} 
Standard procedure it just gets placed into a player's attr to display a poison ticking effect, then if you or the person with the effect changes levels it disappears.

If I 'refresh the effect' (clear the attr and re-add) it works fine and updating the gani file causes it to work as well.

I'm hoping there's a way to fix this in the gani file or if it's a bug that needs to be fixed.

See attached for the aftermath of changing levels.

Edit: Added the changes that made it work the way I wanted it to.
Attached Thumbnails
Click image for larger version

Name:	aftermath.jpg
Views:	391
Size:	105.9 KB
ID:	51946  
__________________
Quote:

Last edited by fowlplay4; 11-16-2010 at 09:10 PM..
Reply With Quote