Thread: player.head
View Single Post
  #2  
Old 09-17-2011, 09:47 PM
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
player.head - the image name of the player's current head.

You can draw the 'down' image of the head like this:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
x = player.x;
    
y = player.y - 2; // Just drawing it above player for now...
    
image = player.head;
    
temp.dir = 2;
    
// Isolate the Head X: 0 Y: 32 * direction
    
partx = 0;
    
party = 32 * temp.dir;
    
partw = parth = 32; // Width and Height of Head is 32 pixels
  
} 
} 
__________________
Quote:
Reply With Quote