1 | switch fade_stage |
2 | { |
3 | case 0: |
4 | if (fade_alpha < 1) |
5 | fade_alpha += fade_speed |
6 | else |
7 | fade_stage += 1 |
8 | break |
9 | case 1: |
10 | break |
11 | case 2: |
12 | if (fade_alpha > 0) |
13 | fade_alpha -= fade_speed |
14 | else |
15 | fade_stage = 3 |
16 | break |
17 | case 3: |
18 | instance_destroy() |
19 | break |
20 | } |