Quote:
Originally Posted by Samposse
i used that help i got from
but it didnt work
(the Bar thing )
|
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.healthbar = "healthbarimg.png"; //make a health bar image, as high and wide as it should show for anyone
this.width = getImgWidth(this.healthbar);
this.height = getImgHeight(this.healthbar);
this.fullhearts = 3; //max full hearts on the server so it replicates the regular stats but with a bar
onTimeout();
}
function onTimeout() {
showImg(200, this.healthbar, player.x-this.width/32, player.y-this.height/16); //change x and y coords to whatever you want them, but try to keep them relevant to the player
changeImgPart(200, 0, 0, this.width/(player.hearts/this.fullhearts), this.height);
changeImgVis(200, 3);
setTimer(0.05);
}
Something like this. You'll need to do some work.