Quote:
Originally Posted by projectigi
huh
what exactly do you mean by that
|
He means, put a script in a gani to show the HP bar, but only show the images when the mouse is over the player.. EG
NPC Code:
...
function update_bar() { ...some code to draw the HP Bars... }
function hide_bar() { ...some code to hide the HP Bars... }
function onTimeout() {
if(... some code to check if the mouse is on the player...) {
update_bar();
} else {
hide_bar();
}
setTimer(0.05);
}
...