ID:2030413
 
Code:
obj
Hud
icon ='Hud.dmi'
layer=MOB_LAYER+100
New(client/C)
. = ..()
C.screen+=src
Bag
icon_state = "1"
screen_loc="20,20"
Click()usr.Run()
character
icon_state ="Character"
screen_loc="10,15"
Bingo
icon_state="Bingo Book"
screen_loc="10,25"

client/New()
. = ..()
new/obj/Hud/Bag(src) //only this sows up and the icon is black
new/obj/Hud/character(src) //wont appear and black icon
new/obj/Hud/Bingo(src) //wont appear and black icon


Problem description:

This is my problem
The only reason why I can see they appear black is if they appear off your screen window which tends to create black squares or bars. Are the black squares within the game window?
there is only one black square on the window its the first one and the other 2 huds wont appear at all
Can you post a screenshot?
gimme 1 min
Image and video hosting by TinyPic
its not clear but to the left is the hud icons they appear black and to the right when game is executed only one hud appears and its a black square
Well first things first, your object tree on the left shows that they are black. So don't expect them to appear on the game. icon_state is case sensitive. Be sure to have written the icon_state values exactly the same.
thanks for your help
crap it doesnt work
What doesn't work? Do you at least see their icons on the Object tree on the left?
nope everything is ok but still the tree is still showing the objects black
If you don't mind, can you show me your Hud.dmi?
sure
Image and video hosting by TinyPic
i changed the names to make sure they are not case sensitive
So your code should now look like
        Bag
icon_state = "bag"
screen_loc="20,20"
Click()usr.Run()
character
icon_state ="character"
screen_loc="10,15"
Bingo
icon_state="bingo"
screen_loc="10,25"

Right?
yup
Bag
icon_state="bag"
screen_loc="20,20"
Click()usr.Run()
character
icon_state ="character"
screen_loc="10,15"
Bingo
icon_state="bingo"
screen_loc="10,25"
You sure you recompiled and ran the game again?
Page: 1 2