1 | if (live_call()) |
2 | return global.live_result; |
3 | if (stage < 3) |
4 | sin_degree += 4; |
5 | if (sin_degree > 180 && stage == 1) |
6 | { |
7 | sin_degree -= 180; |
8 | stage = 2; |
9 | } |
10 | if (sin_degree >= 90 && stage == 2) |
11 | stage = 3; |
12 | var sin_value = degtorad(sin_degree); |
13 | draw_alpha = 0.4 - (sin(sin_value) * 0.4); |
14 | if (box_stage == 0) |
15 | { |
16 | box_size += 0.02; |
17 | box_alpha += 0.2; |
18 | if (box_alpha >= 1) |
19 | box_stage = 1; |
20 | } |
21 | else if (box_size > 0) |
22 | { |
23 | box_size -= 0.01; |
24 | } |
25 | else |
26 | { |
27 | box_size -= 0; |
28 | box_alpha -= 0.1; |
29 | } |
30 | destroy_timer--; |
31 | if (destroy_timer <= 0) |
32 | instance_destroy(); |