draw_self();
drawstate();
log(data);
draw_set_color(c_red);
draw_rectangle(x-ts.x/2, y-ts.y/2-1,
x-ts.x/2+(ts.x*(data.hp.val/data.hp.val)),
y-ts.y/2+1, false
);
//draw_set_color(c_red);
//draw_circle(x, y, 5, false);