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 | box_size -= 0.01 |
23 | else |
24 | { |
25 | box_size -= 0 |
26 | box_alpha -= 0.1 |
27 | } |
28 | destroy_timer-- |
29 | if (destroy_timer <= 0) |
30 | instance_destroy() |