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