1 | timer += 1; |
2 | siner += 1; |
3 | if (timer < 15) |
4 | image_xscale = cos(siner / 2) * 2; |
5 | if (timer == 15) |
6 | { |
7 | snd_play(snd_punchstrong); |
8 | if (crit == 1) |
9 | snd_play(snd_saber3); |
10 | image_speed = 1; |
11 | image_xscale = 0.5; |
12 | image_yscale = 0.5; |
13 | sprite_index = spr_frypan_impact; |
14 | } |
15 | if (timer > 15) |
16 | { |
17 | image_xscale += 0.5; |
18 | image_yscale += 0.5; |
19 | if (image_xscale > 2) |
20 | image_alpha -= 0.2; |
21 | if (image_alpha < 0.1) |
22 | { |
23 | caster_free(bookspin); |
24 | instance_destroy(); |
25 | } |
26 | } |