Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:14 AM.


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