Thread: player.head
View Single Post
  #1  
Old 09-17-2011, 09:31 PM
oralgnome oralgnome is offline
doesnt afraid of anything
oralgnome's Avatar
Join Date: Sep 2011
Posts: 34
oralgnome is an unknown quantity at this point
player.head

how would you select the 2nd frame of player.head? instead I get the first 4 frames

i'm using an emitter to show the player's head

PHP Code:
function onTimeout(){
    
setTimer(0.05);
        
with (findimg(100)) {
        
x = player.x;
        
y = player.y;
        
layer = 1;
        
emitter.delaymin = 0.1;
        
emitter.delaymax = 0.2;
        
emitter.nrofparticles = 1;
        
// Basic particle attributes
        
emitter.particle.lifetime = 3;
        
emitter.particle.image = player.head;
        
emitter.particle.mode = 1; // alpha transparent
        
emitter.particle.alpha = 0.5;
        
emitter.particle.zoom = 1;
        
// Movement
        
emitter.particle.speed = 0.2;
        
emitter.addlocalmodifier("range", 1, 3, "alpha", "replace", 0.8, 0);
        
emitter.addlocalmodifier("once", 0, 0, "spin", "replace", 2, 4);
  }
} 

Last edited by oralgnome; 09-17-2011 at 09:48 PM..
Reply With Quote