|
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 = lerp_ease_out(0, sprite_height / 2, (siner + 2) / 10, 1);
|
|
13
|
image_alpha -= faderate;
|
|
14
|
draw_sprite_part_ext(sprite_index, image_index, 0, 0, hw, hh, x - m - ((xo * image_xscale) / 2), y - m - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
15
|
draw_sprite_part_ext(sprite_index, image_index, hw, 0, hw, hh, (x + m) - ((xo * image_xscale) / 2), y - m - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
16
|
draw_sprite_part_ext(sprite_index, image_index, 0, hh, hw, hh, x - m - ((xo * image_xscale) / 2), (y + m) - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
17
|
draw_sprite_part_ext(sprite_index, image_index, hw, hh, hw, hh, (x + m) - ((xo * image_xscale) / 2), (y + m) - ((yo * image_yscale) / 2), image_xscale, image_yscale, image_blend, image_alpha);
|
|
18
|
if (image_alpha < 0)
|
|
19
|
instance_destroy();
|