View Single Post
  #7  
Old 09-23-2011, 04:44 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Try..

PHP Code:
function onPlayerEnters()
{
with (findimg(1)) {
  
  
temp.colors = {
  {
0, 0, 1},
  {
0, 1, 0},
  {
0, 1, 0},
  {
0, 1, 0}
  };
  
  
layer = 2;
  
emitter.delaymin = 0.05;
  
emitter.delaymax = 0.05;
  
emitter.nrofparticles = 1;
  
  
emitter.particletypes = temp.colors.size();
  
  for (
temp.i = 0; temp.i < emitter.particletypes; temp.i++)
  {
    
emitter.particle[temp.i].red = temp.colors[temp.i][0];
    
emitter.particle[temp.i].green = temp.colors[temp.i][1];
    
emitter.particle[temp.i].blue = temp.colors[temp.i][2];
    
emitter.particle[temp.i].angle = pi / 2;
    
emitter.particle[temp.i].speed = 4;
    
emitter.particle[temp.i].lifetime = 6;
    
emitter.particle[temp.i].image = "g4_particle_sun.png";
    
emitter.particle[temp.i].mode = 0;
    
emitter.particle[temp.i].alpha = 1;
    
emitter.particle[temp.i].zoom = 1;
    
//sleep(0.05); // not even needed...
  
}
  
  
emitter.addlocalmodifier("once", 0, 0, "angle", "add", 30, 30);
  
emitter.addemitmodifier("impulse", .115, .115, "angle", "add", degtorad(45), degtorad(45)); 
  
  
emitter.addlocalmodifier("range", 2, 4, "alpha", "replace", 0.99, 0);
  
emitter.addlocalmodifier("range", 2, 4, "zoom", "add", 1, 3);
  }
} 
__________________
Quote:
Reply With Quote