Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   using a Gani as a particle (https://forums.graalonline.com/forums/showthread.php?t=134264834)

haro41 10-20-2011 10:38 AM

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", 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);
  }
} 


DrakilorP2P 10-20-2011 04:55 PM

I messed around with it trying to use playerlook and such, but couldn't get it to work either.

Admins 10-31-2011 12:31 AM

It will be fixed in the next version.


All times are GMT +2. The time now is 02:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.