1 | if (defeat == 0) |
2 | draw_sprite(sprite_index, 0, x, y); |
3 | if (defeat == 1) |
4 | { |
5 | dxtimer += 1; |
6 | draw_sprite_ext(sprite_index, 1, x - dx1, y, 1, 1, 0, c_white, image_alpha); |
7 | draw_sprite_ext(sprite_index, 2, x + dx2, y, 1, 1, 0, c_white, image_alpha); |
8 | } |
9 | if (dxtimer > 25) |
10 | { |
11 | if (dxtimer == 26) |
12 | snd_play(snd_break2); |
13 | image_alpha -= 0.04; |
14 | dx1 += 0.5; |
15 | dx2 += 0.5; |
16 | if (image_alpha < 0.1) |
17 | instance_destroy(); |
18 | } |