ID:1684789
 
(See the best response by Phat T.)
Is there Such thing as adding your characters appearance in the health bar? if so, How do i do it?

Sorry if i am bothering you but i am still new to the coding stuff.
Mountain View
Best response
Well you make your character appearance and than use obj and screen_loc to make it appear on your screen


obj
Hud
appearance
icon = 'appearance .dmi'
icon_state="appearance "
New(client/c) screen_loc = "1,1"


For some reason when i add the code in it won't show it on my screen is there some type of bug hiding in my source?
It is simple. Use variable screen_loc to set the position on the screen.
obj/HUD/HPBar
icon='Hud.dmi'
icon_state="HPBar"
New(var/Screen_loc="1,1")
screen_loc="[Screen_loc]"

Add hud with the command:
mob/Lobin()
src.client.screen+=new/obj/HUD/HPBar("1,1")//Now you can set every loc you want.