ID:144970
 
#define SECOND 10 // One Second
#define MINUTE 600 // One Minute
#define HOUR 36000 // One Hour

mob
verb
Add_Test_Hud()
var/obj/O = new
O.icon = 'hud_1.dmi'
O.icon_state = "2"
O.screen_loc = "1,1"
O.pixel_x = 32
src.client.screen += O
sleep(5*SECOND)
src.client.screen -= O
return


Problem description: The obj is at 1,1 when it should be a 2,1 because I change the pixel_x var to 32.

Pixel_x and Pixel_y only affects the graphics of an object when it's on the map, not in client.screen

Instead, use
screen_loc="[x]:[pixel_x],[y]:[pixel_y]"
In response to D4RK3 54B3R
Thanks, I didn't see this at all in the Reference.

Edit: Nevermind, I just found it. LOL.
In response to Y2kEric
It should be in there under screen_loc.
In response to Y2kEric
Y2kEric wrote:
Thanks, I didn't see this at all in the Reference.

Edit: Nevermind, I just found it. LOL.
In response to D4RK3 54B3R
However, if I remember correctly, it does work for images attached to objects that are in the screen list.