View Single Post
  #1  
Old 10-20-2011, 10:38 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
using a Gani as a particle

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"00"angle""replace"2*pi0);
    
emitter.addlocalmodifier("range"02"zoom""add".8 .8);
    
emitter.addlocalmodifier("range"02"speed""add"812);
  }

__________________

Zenkou for life
Reply With Quote