eastern-flames/eastern flames/objects/o_unit/Draw_0.gml

33 lines
937 B
Plaintext
Raw Permalink Normal View History

2022-08-19 22:06:21 +00:00
draw_set_color(c_black);
//draw_set_alpha(0.25);
//draw_circle(x,y,5,false);
//draw_set_alpha(1);
2022-08-17 06:45:08 +00:00
var worldMat = matrix_get(matrix_world);
//this is the location of where i want to draw from !!!
2022-08-23 13:06:02 +00:00
var worldMat2 = matrix_build(x,y-6,0,50,0,0,0.6,0.6,0.6);
2022-08-17 06:45:08 +00:00
matrix_set(matrix_world,worldMat2);
2022-08-23 13:06:02 +00:00
image_blend = c_white;
if marked image_blend = c_red;
if waiting image_blend = c_grey;
2022-08-17 06:45:08 +00:00
var tempx = x;
var tempy = y;
x = 0;
y = 0;
2022-08-15 02:35:57 +00:00
draw_self();
2022-08-23 13:06:02 +00:00
//draw_sprite_ext(sprite_index, image_index, x+sprite_width/2, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
2022-08-23 06:49:38 +00:00
2022-08-17 06:45:08 +00:00
x = tempx;
y = tempy;
2022-08-16 01:01:09 +00:00
//log(data);
2022-08-15 17:51:51 +00:00
draw_set_color(c_red);
2022-08-23 09:25:43 +00:00
draw_rectangle(0-ts.x/2, 0-sprite_height+5,
2022-08-17 06:45:08 +00:00
0-ts.x/2+(ts.x*(data.hp.val/data.hp.cap)),
2022-08-23 09:25:43 +00:00
0-sprite_height+7, false
2022-08-15 17:51:51 +00:00
);
2022-08-23 09:25:43 +00:00
draw_set_halign(fa_center);
draw_text(0, -6-sprite_height-20, data.hp.val);
2022-08-15 02:35:57 +00:00
//draw_set_color(c_red);
2022-08-23 09:25:43 +00:00
draw_set_halign(fa_left);
2022-08-17 06:45:08 +00:00
//draw_circle(x, y, 5, false);
matrix_set(matrix_world,worldMat);