2022-08-15 02:35:57 +00:00
|
|
|
draw_self();
|
2022-08-15 04:06:41 +00:00
|
|
|
drawstate();
|
2022-08-16 01:01:09 +00:00
|
|
|
//log(data);
|
2022-08-15 17:51:51 +00:00
|
|
|
draw_set_color(c_red);
|
|
|
|
draw_rectangle(x-ts.x/2, y-ts.y/2-1,
|
2022-08-16 01:01:09 +00:00
|
|
|
x-ts.x/2+(ts.x*(data.hp.val/data.hp.cap)),
|
2022-08-15 17:51:51 +00:00
|
|
|
y-ts.y/2+1, false
|
|
|
|
);
|
2022-08-16 01:01:09 +00:00
|
|
|
draw_text(x, y-ts.y, data.hp.val);
|
2022-08-15 02:35:57 +00:00
|
|
|
//draw_set_color(c_red);
|
|
|
|
//draw_circle(x, y, 5, false);
|