| 1 | dr += 1; |
| 2 | if (dr > 3) |
| 3 | { |
| 4 | fog_r += 1; |
| 5 | dr = 0; |
| 6 | } |
| 7 | if (s == 0) |
| 8 | fog_alpha = obj_mainchara.x / 440; |
| 9 | if (fog_alpha > 1 && s == 0 && global.plot > 99) |
| 10 | fog_alpha = 1 + (1 - fog_alpha); |
| 11 | i = 0; |
| 12 | j = 0; |
| 13 | repeat (3) |
| 14 | { |
| 15 | repeat (13) |
| 16 | { |
| 17 | draw_sprite_part_ext(spr_tundrafog, 0, fog_r, 0, 80, 80, i * 80, j * 80, 1, 1, c_white, fog_alpha); |
| 18 | i += 1; |
| 19 | } |
| 20 | j += 1; |
| 21 | i = 0; |
| 22 | } |
| 23 | if (fog_r >= 80) |
| 24 | fog_r -= 80; |