//targetting system
mob/var
mob/enemy
enemy_marker
targetable
client/DblClick(mob/M)//anyone who double clicks a mob
if(istype(M))//if the mob variable is a mob
del usr.enemy_marker//delete image before it comes up
usr.enemy = M//your enemy is the mob
usr.enemy_marker = image('targeticon.dmi',pixel_y + 10,pixel_x = 0, M)//set the image
usr << usr.enemy_marker
usr << "[M]'s HP: [M.HP]"//get M's name and HP
My issue is that when I use( pixel_y + 10,pixel_x = 0, M) the icon doesnt appear at all. I am trying to move it up higher on the Y axis.
DM doesn't know what you're trying to do, since the image proc isn't formatted how you're making it.
Also, it would help you if you defined enemy_marker as an image.
Then to fix your problem, you use image() correctly.