Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-09-2013, 05:05 PM
defaultaccount defaultaccount is offline
Cassini
Join Date: Feb 2006
Location: HeLLifAX
Posts: 299
defaultaccount is on a distinguished road
Particle Effects direction in gani

I'm trying to make a particle effect move or attach itself to the image, and to place them in the right directions when the directions change for a shell on the ground for it to be in the right place. The particle doesn't follow the shell like it should, and it doesn't change for the different directions I'm shooting. The shell gani has all the directions on it, but when it emits the particle it doesn't show up in the right place, it's in the same place even for the different directions, even when I made the offset right, it was only right for one direction, is there a way for me to add them like lights and choose where they are placed?

this is the script
PHP Code:
SCRIPT
function onCreated() {
  
with (findimg(200)) {
    
with (emitter) {
      
player.x;
      
player.y;
      
delaymin 0.05;
      
delaymax 0.05;
      
nrofparticles 1;
      
firstinfront false;
      
attachtoowner=true;
      
maxparticals 10;
      
emissionoffset = {1,1.5,0};
      
with (particle) {
        
layer 1;
        
lifetime 0.1;
        
image "g4_particle_yellowlight.png";
        
zoom 0.1;
        
mode 2;
        
red 1;
        
green 0.0;
        
blue 0.5;
        
alpha 0.99;
        
angle pi 2;
        
speed 6;
    }
      
addlocalmodifier"range"01"alpha""add",    - .9,      - .9);
    }
  }
}
SCRIPTEND 
all I'm trying to do is to get that to attach to my shell image in the gani. Can I place particle effects manually? the emitters only show in one direction.

Last edited by defaultaccount; 07-09-2013 at 05:27 PM..
Reply With Quote
 


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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:41 AM.


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