ID:262028
 
there really isn't a problem here I just want to know if anyone can help me figure out how to make the bar follow the person. Sorry I also didn't have very much time so I couldn't figure out the dm thing.
client
New()
..()
new/obj/healthbar(src)

obj
healthbar
icon = 'life meeter.dmi'
icon_state = "100%"
New(client/C)
screen_loc="1,11"
C.screen+=src


thank you,
<< Dragon warrior2662 >>
I use overlays, it's an easy solution to this. Just create a new overlay for the client when they log onto a mob. In your update procedure, simply remove the overlay (don't delete it), update the icon_state, and add it back to the mob.