ID:806342
 
(See the best response by XIIIGaming.)
Code:
mob
proc
actualHealth()
if(src.powerlevel_max*100 <= 0)
spawn(10) src.actualHealth()
return
var/percent=round(src.powerlevel/src.powerlevel_max*100,10)
if(percent>200) percent = 101
else if(percent>100) percent=100
if(percent<0) percent=0
for(var/obj/hudMeters/o in src)
o.icon_state=num2text(percent)
spawn(10)
src.actualHealth()




obj
hudMeters
health_07
icon='healthbar.dmi'
icon_state="0"
layer = 100
pixel_y = -32


Problem description:in the game the health bar dont updated

Check this out.
In response to Yusuke13
Yusuke13 wrote:
Check this out.

I actually am using that for my game but may i ask how do i add a mana one?
In response to Dr.Penguin
Dr.Penguin wrote:
I actually am using that for my game but may i ask how do i add a mana one?

In the same manner.

In response to Yusuke13
Yusuke13 wrote:
Dr.Penguin wrote:
I actually am using that for my game but may i ask how do i add a mana one?

In the same manner.

Yeah but i want the health in the right and the mana in the left how do i change that

In response to Dr.Penguin
Best response
Dr.Penguin wrote:
Yusuke13 wrote:
Dr.Penguin wrote:
I actually am using that for my game but may i ask how do i add a mana one?

In the same manner.

Yeah but i want the health in the right and the mana in the left how do i change that


Make a Mana Obj, And Change The screen Location in the code to go where you want.

In this case if you want it to go next to it.

changed the x,11 to x,10