1 | if (fade_direction == "out") |
2 | { |
3 | image_alpha += fade_speed |
4 | if (image_alpha == 1) |
5 | fade_direction = "none" |
6 | } |
7 | if (fade_direction == "in") |
8 | { |
9 | image_alpha -= fade_speed |
10 | if (image_alpha == 0) |
11 | fade_direction = "none" |
12 | } |