Registered User
|
|
Join Date: Jun 2011
Posts: 43
|
|
HUD Doubles on Death
Hello again, I have been experiencing this issue since the hud script was created, the issue is that when you die, the gui doubles untill you come alive again, quite odd.. Well here's some images of the proof:
Normal:
Doubled:
Here's the script:
PHP Code:
//#CLIENTSIDE
function onCreated() onTimeOut();
function onTimeout() {
fileupdate("e_gui.png");
if(client.loggedin != null) {
this.hudx=5;
this.hudy=10;
with(findimg(1000)) {
image = player.head;
x = this.hudx+35;
y = this.hudx+25;
changeimgpart(1000,0,63,33,32);
changeimgvis(1000,0);
layer = 5;
}
with(findimg(900)) {
image = "e_gui.png";
x = this.hudx-5;
y = this.hudy;
changeimgpart(900,this.hudx,this.hudy,182,92);
layer = 5;
}
//hp bar
showimg(202,"e_gui.png",this.hudx+68,this.hudy+22);
changeimgpart(202,18,103,102,12);
changeimgvis(202,18);
changeimgpart(202,18,103,clientr.player.stats.curhp*102/clientr.player.stats.maxhp,12);
//energy bar
showimg(302,"e_gui.png",this.hudx+68,this.hudy+36);
changeimgpart(302,18,123,102,12);
changeimgvis(302,18);
changeimgpart(302,18,123,clientr.player.stats.energy*100/clientr.player.stats.energy,12);
//Exp Bar
showimg(402,"e_gui.png",this.hudx+58,this.hudy+51);
changeimgpart(402,23,145,91,6);
changeimgvis(402,18);
changeimgpart(402,23,145,clientr.exp*100/clientr.expneeded,6);
//level text
with (showText( 400, this.hudx+45, 59.7, "Impact", "a",clientr.explevel))
{layer = 21;zoom = .71;alpha =.90;zoom =.5;}
changeimgcolors(400,0,0,0,.99);
with (showText( 401, this.hudx+45, 59.7, "Impact", "a",clientr.explevel))
{layer = 22;zoom = .70;alpha =.90;zoom =.5;}
changeimgcolors(401,1,1,1,.99);
//Money
with (showText( 2000, this.hudx+90, 71, "Impact", "a",player.rupees))
{layer = 21;zoom = .71;alpha =.90;}
changeimgcolors(2000,0,0,0,.99);
with (showText( 2001, this.hudx+90, 71, "Impact", "a",player.rupees))
{layer = 22;zoom = .70;alpha =.90;}
changeimgcolors(2001,1,1,1,.99);
//Nickname
with (showText( 3000, this.hudx+93.5, this.hudy+3, "Arial", "ab",player.nick))
{layer = 21;zoom = .71;alpha =.90;zoom =.7;}
changeimgcolors(3000,0,0,0,.99);
with (showText( 3000, this.hudx+93.5, this.hudy+3, "Arial", "ab",player.nick))
{layer = 22;zoom = .70;alpha =.90;zoom =.7;}
changeimgcolors(3000,1,1,1,.99);
}
settimer(.05);
}
Thanks in advance! |
__________________
|
|