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 - 1 - 64 - 512 - 128);
with ( findImg( 2000 ) ) {
text = "--- Life ---";
font = "Arial";
style = "bic";
zoom = .8;
layer = 4;
mode = 1;
x = 560;
y = 15;
textshadow = true;
shadowcolor = {0, 1, 0};
}
drawAPBar();
onTimeout();
}
function drawAPBar() {
with (findimg(200)) {
image = "armageddon-bar.gif";
x = 27;
y = 27;
layer = 5;
}
with (findimg(201)) {
image = "armageddon-ap.gif";
x = 20;
y = 20;
layer = 4;
}
}
function onTimeout() {
temp.img = "armageddon-bar.gif";
temp.img2 = "armageddon-ap.gif";
changeimgpart(200, 0, 0, getimgwidth(img), (player.ap / 100) * getimgheight(img));
setTimer(0.05);
}