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 = {
  {
001},
  {
010},
  {
010},
  {
010}
  };
  
  
layer 2;
  
emitter.delaymin 0.05;
  
emitter.delaymax 0.05;
  
emitter.nrofparticles 1;
  
  
emitter.particletypes temp.colors.size();
  
  for (
temp.0temp.emitter.particletypestemp.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"00"angle""add"3030);
  
emitter.addemitmodifier("impulse".115.115"angle""add"degtorad(45), degtorad(45)); 
  
  
emitter.addlocalmodifier("range"24"alpha""replace"0.990);
  
emitter.addlocalmodifier("range"24"zoom""add"13);
  }

__________________
Quote:
Reply With Quote