View Single Post
  #2  
Old 01-31-2012, 04:22 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
All my examples draw your head sprite facing down.

Using findimg, partx, party, partw, parth:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
player.x;
    
player.3;
    
image player.head;
    
partx 0;
    
party 32 2;
    
partw 32;
    
parth 32;

    
// If you want to adjust it's zoom factor (play with this variable)
    
zoom 1;
  }

Using showimg and changeimgpart:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showimg(200player.headplayer.xplayer.3);
  
changeimgpart(20003223232);
  
changeimgzoom(2001); // How to Change Zoom Factor

Using setimgpart for level npcs:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setimgpart(player.head032 23232);
  
zoom 1// You can just change zoom directly here (GS2 only)

__________________
Quote:
Reply With Quote