Thread: Player ap bar
View Single Post
  #8  
Old 12-01-2009, 08:25 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Actually, one more question. Its probably just math, but I dont know.
Instead of it starting from top to bottom, is there a way to make it bottom to top?

PHP Code:
//#CLIENTSIDE
//Needs to show the this.apsbar on the complete left, like zelda hp, but for ap. 
//Needs to show the image armageddon-wepicon.gif beside new ap 
//bar, like zelda, and work with showing the wepicon image 
//in the center of it. example at:
//http://old-wizard.com/wp-content/uploads/2008/06/zelda_1.jpg

function onCreated(){
  
showStats(allstats 64 512 128);
  
with findImg2000 ) ) {
    
text "--- Life ---";
    
font "Arial";
    
style "bic";
    
zoom .8;
    
layer 4;
    
mode 1;
    
560;
    
15;
    
textshadow true;
    
shadowcolor = {010};
  }
  
drawAPBar();
  
onTimeout();
}
function 
drawAPBar() { 
  
with (findimg(200)) { 
    
image "armageddon-bar.gif";  
    
27
    
27
    
layer 5
  } 
  
with (findimg(201)) { 
    
image "armageddon-ap.gif"
    
20
    
20
    
layer 4
  } 

function 
onTimeout() {
  
temp.img "armageddon-bar.gif";
  
temp.img2 "armageddon-ap.gif";
  
changeimgpart(20000getimgwidth(img), (player.ap 100) * getimgheight(img));  
  
setTimer(0.05);

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote