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
}
}