1 |
if (instance_exists(tailobj)) |
2 |
{ |
3 |
image_speed = tailobj.mercymod / 900; |
4 |
if (image_speed > 0.5) |
5 |
image_speed = 0.5; |
6 |
x = tailobj.x; |
7 |
y = tailobj.y - (tailobj.mercymod / 4); |
8 |
if (tailobj.sprite_index == spr_lesserdoge) |
9 |
{ |
10 |
draw_set_color(c_white); |
11 |
ossafe_fill_rectangle(x + 44, 79 + y, x + 81, 79 + y + (tailobj.mercymod / 4)); |
12 |
ossafe_fill_rectangle(x + 54, 79 + y, x + 76, 98 + y + (tailobj.mercymod / 4)); |
13 |
draw_sprite(sprite_index, image_index, x, y); |
14 |
if (tailobj.mercymod > 500) |
15 |
{ |
16 |
ossafe_fill_rectangle(x + 116, -1, x + 152, (-1 + ((tailobj.mercymod - 500) / 4)) - 40); |
17 |
draw_sprite_ext(sprite_index, image_index, x + 196, ((tailobj.mercymod - 500) / 4) + 40, -1, -1, 0, c_white, 1); |
18 |
} |
19 |
thismercy = tailobj.mercymod; |
20 |
} |
21 |
} |
22 |
else |
23 |
{ |
24 |
instance_destroy(); |
25 |
} |