Thread: Health Bar
View Single Post
  #26  
Old 11-27-2009, 10:44 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by Samposse View Post
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(200this.healthbarplayer.x-this.width/32player.y-this.height/16); //change x and y coords to whatever you want them, but try to keep them relevant to the player
  
changeImgPart(20000this.width/(player.hearts/this.fullhearts), this.height);
  
changeImgVis(2003);
  
setTimer(0.05);

Something like this. You'll need to do some work.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote