ID:2250437
 
I'm programming in stealth for players in this game, and I've gotten everything to work with image objects to display the player to only their teammates, but when I'm creating an image obj for the health bar, I can't get it to stay in the proper x/y offsets. Is there a syntax or workaround for this I'm not aware of?

If you mean the little health bars that follow the player around, you set the image's loc to the player (which can be done in image()) and offset it by changing its pixel offsets: pixel_x and pixel_y, or pixel_w and pixel_z. It works the same as overlays in this way.
I don't want to change the player's pixel_x/pixel_y, just the healthbar /image object
In response to Gunbuddy13
...Yeah, so change the pixel offsets of the /image object.
var image/health_bar = image(
'health bar icon.dmi',
player,
"whatever icon state",
layer = FLOAT_LAYER // probably
)
health_bar.pixel_x = whatever
health_bar.pixel_y = whatever
Woops, I had defined the variable as /icon but created it with /image. That's why it was giving errors when tried changing. Thanks!