28 lines
721 B
Plaintext
Raw Normal View History

2022-08-19 15:06:21 -07:00
draw_set_color(c_black);
//draw_set_alpha(0.25);
//draw_circle(x,y,5,false);
//draw_set_alpha(1);
2022-08-16 23:45:08 -07:00
var worldMat = matrix_get(matrix_world);
//this is the location of where i want to draw from !!!
var worldMat2 = matrix_build(x,y+6,0,50,0,0,0.6,0.6,0.6);
2022-08-16 23:45:08 -07:00
matrix_set(matrix_world,worldMat2);
2022-08-16 15:28:01 -07:00
if waiting image_blend = c_grey else image_blend = c_white;
2022-08-16 23:45:08 -07:00
var tempx = x;
var tempy = y;
x = 0;
y = 0;
2022-08-14 19:35:57 -07:00
draw_self();
2022-08-22 23:49:38 -07:00
2022-08-16 23:45:08 -07:00
x = tempx;
y = tempy;
2022-08-15 18:01:09 -07:00
//log(data);
2022-08-15 10:51:51 -07:00
draw_set_color(c_red);
2022-08-17 09:49:45 -07:00
draw_rectangle(0-ts.x/2, 0-sprite_height-1,
2022-08-16 23:45:08 -07:00
0-ts.x/2+(ts.x*(data.hp.val/data.hp.cap)),
2022-08-17 09:49:45 -07:00
0-sprite_height+1, false
2022-08-15 10:51:51 -07:00
);
draw_text(5, -6-sprite_height-6, data.hp.val);
2022-08-14 19:35:57 -07:00
//draw_set_color(c_red);
2022-08-16 23:45:08 -07:00
//draw_circle(x, y, 5, false);
matrix_set(matrix_world,worldMat);