ID:267626
 
how do i make a HUD object?
Theres a couple of demos on HUD making. Crispy has a nice one ;)

©®<-!¿Airjoe¿!->©®
In response to Airjoe
You need to first define the screen_loc of the obj, so youll want to look that up under the f1 menu. You also need to add the object to the src's screen ex:

Login()
src.client.screen += new/obj/object


Thats the very basics of it, as airjoe said there are a few demos and such on it, you should look them up.
It goes a little something like this...

obj
[name 1 here]
icon='[dmi file].dmi'
icon_state="[if any icon_state, goes here]"
layer = MOB_LAYER + 99
New(client/C) screen_loc = "1,1 to 13,1", C.screen+=src

(the 1,1 to 13,1 is going along your whole map, at the bottom, if your view is different the number 13 is different)

And of coarse you need the src's hud to apear like this

client
New()
new/obj/[name 1 here](src)
..()

You always have to have the ..() or you'll get an error of some sort. Glad to help
In response to YellowDragon9768
Thats not the best way to do it in my opinion. screen_loc does not have to be defined under New(), and its simpler to do src.client.screen += new/obj/whatever under Login() instead of all that stuff under New().