![]() |
Custom Health Display
Basically iv scripted a bar background which stays there permanently and a red bar on top of it which on a time out when the players health changes so does the red bars width, i was wondering if there is a more efficant way of achiving this without changing the width and having tons of if statements.
Thanks in advanced im sure some of you pro's will be able to help xD |
PHP Code:
|
In whatever function you use for hitting the player, have it trigger the appropriate script, then redraw it.
|
Quote:
its basically just: PHP Code:
also can who ever neg repped me for this just tell me who you are... im sorry for not knowing gs2! in actual fact since its a person with high rep power im kinda half suspecting who it might be. Sorry for trying to help, I will just refrain for showing an example of what I mean.... YES THATS RIGHT! **** YOU! |
ahh i see i shall have a play around with that, how does changeimhpart work? what do each int's do?
|
Quote:
|
thanks for that, but wouldnt it just be as easy to use Guiwhatever.width = whatever;
that wiki seems quite handy. i might use it more instead of posting here. |
Quote:
|
ah ok, so how would i make i if the gui was Health_Text so that it changes the image width to how big player.health is?
also is there a way to check what the players hewlth is ajd make its width accordingly withiut using if(player.health == 3){ do this if player health 2.5 etc etcv i dont understand how the first method works |
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 03:43 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.