|
1
|
if (flash)
|
|
2
|
{
|
|
3
|
d3d_set_fog(true, c_white, 0, 1);
|
|
4
|
draw_self();
|
|
5
|
d3d_set_fog(false, c_black, 0, 0);
|
|
6
|
flash = false;
|
|
7
|
exit;
|
|
8
|
}
|
|
9
|
siner++;
|
|
10
|
var hw = width / 2;
|
|
11
|
var hh = height / 2;
|
|
12
|
var m;
|
|
13
|
if (type == 0)
|
|
14
|
m = lerp_ease_out(0, sprite_height / 2, (siner + 2) / 10, 1);
|
|
15
|
if (type == 1)
|
|
16
|
m = lerp_ease_out(0, sprite_height / 2, (siner + 2) / 3, 1);
|
|
17
|
image_alpha -= faderate;
|
|
18
|
if (type == 0)
|
|
19
|
{
|
|
20
|
draw_sprite_part_ext(sprite_index, image_index, 0, 0, hw * 2, hh, x - (width / 2), y - m - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
21
|
draw_sprite_part_ext(sprite_index, image_index, 0, hh, hw * 2, hh, x - (width / 2), (y + m) - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
22
|
}
|
|
23
|
if (type == 1)
|
|
24
|
{
|
|
25
|
draw_sprite_part_ext(sprite_index, image_index, 0, 0, hw * 2, hh, x - m - (width / 2), y - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
26
|
draw_sprite_part_ext(sprite_index, image_index, 0, hh, hw * 2, hh, (x + m) - (width / 2), y - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
27
|
}
|
|
28
|
if (image_alpha < 0)
|
|
29
|
instance_destroy();
|