View Single Post
  #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