1 |
if (explosion_hide == 0) |
2 |
draw_self(); |
3 |
if (timer > 0) |
4 |
{ |
5 |
obj_sneo_lastattack.endattack = 3; |
6 |
if (obj_sneo_lastattack.endattack == 2) |
7 |
{ |
8 |
if (timer >= 7) |
9 |
explosion_alpha -= 0.1; |
10 |
draw_sprite_ext(spr_pixel_white, 0, camerax() - 20, cameray() - 20, 220, 220, 0, c_white, clamp(timer / 60, 0, 1)); |
11 |
} |
12 |
else |
13 |
{ |
14 |
if (explodesfx == 0) |
15 |
{ |
16 |
explodesfx = 1; |
17 |
snd_loop(snd_rumble); |
18 |
snd_play_x(snd_explosion, 0.6, 1); |
19 |
} |
20 |
draw_sprite_ext(spr_sneo_bigcircle, 0, x - 50, y, image_xscale + (timer * 2), image_yscale + timer, 0, c_white, 1); |
21 |
draw_sprite_ext(spr_pixel_white, 0, camerax() - 20, cameray() - 20, 220, 220, 0, c_white, clamp(timer / 12, 0, 1)); |
22 |
} |
23 |
} |