|
1
|
fill_yscale = obj_queen_enemy.shieldacthp / obj_queen_enemy.shieldactmaxhp;
|
|
2
|
if (fill_yscale_gradual > fill_yscale)
|
|
3
|
fill_yscale_gradual -= 0.02;
|
|
4
|
if (alpha2 < 1)
|
|
5
|
alpha2 += 0.04;
|
|
6
|
else
|
|
7
|
alpha2 = 1;
|
|
8
|
if (obj_queen_enemy.image_alpha < 1)
|
|
9
|
{
|
|
10
|
alpha2 = obj_queen_enemy.image_alpha;
|
|
11
|
image_alpha = obj_queen_enemy.image_alpha;
|
|
12
|
}
|
|
13
|
if (obj_queen_enemy.image_alpha == 1 && image_alpha == 0.9)
|
|
14
|
{
|
|
15
|
alpha2 = 1;
|
|
16
|
image_alpha = 1;
|
|
17
|
}
|
|
18
|
if (fill_yscale_gradual < 0.02)
|
|
19
|
{
|
|
20
|
if (wine_bottom_xscale > 0)
|
|
21
|
wine_bottom_xscale -= 0.02;
|
|
22
|
if (wine_bottom_yscale > 0)
|
|
23
|
wine_bottom_yscale -= 0.02;
|
|
24
|
wine_bottom_yoffset += 0.5;
|
|
25
|
}
|
|
26
|
if (nofill == 0)
|
|
27
|
{
|
|
28
|
draw_sprite_ext(spr_queen_wine_fill, 0, x + lengthdir_x(9 * image_xscale, image_angle + 270), y + lengthdir_y(9 * image_yscale, image_angle + 270), image_xscale, image_yscale * fill_yscale_gradual, image_angle, c_white, image_alpha);
|
|
29
|
draw_sprite_ext(spr_queen_wine_fill, 1, x + lengthdir_x((wine_bottom_yoffset + 8) * image_xscale, image_angle + 270), y + lengthdir_y((wine_bottom_yoffset + 8) * image_yscale, image_angle + 270), wine_bottom_xscale, wine_bottom_yscale, image_angle, c_white, image_alpha);
|
|
30
|
draw_sprite_ext(spr_queen_wine_fill, 0, x + lengthdir_x(9 * image_xscale, image_angle + 270), y + lengthdir_y(9 * image_yscale, image_angle + 270), image_xscale, image_yscale * fill_yscale_gradual, image_angle, c_lime, alpha2);
|
|
31
|
draw_sprite_ext(spr_queen_wine_fill, 1, x + lengthdir_x((wine_bottom_yoffset + 8) * image_xscale, image_angle + 270), y + lengthdir_y((wine_bottom_yoffset + 8) * image_yscale, image_angle + 270), wine_bottom_xscale, wine_bottom_yscale, image_angle, c_lime, alpha2);
|
|
32
|
}
|
|
33
|
draw_self();
|