1 |
draw_sprite(sprite_index, image_index, x, y); |
2 |
if (w_active == 1) |
3 |
{ |
4 |
obj_mainchara.visible = false; |
5 |
w_timer += 1; |
6 |
if (w_timer < 30) |
7 |
{ |
8 |
if (xx > (thisx - 10)) |
9 |
xx -= 1; |
10 |
draw_sprite(spr_maincharal_water, floor(w_timer / 3), xx, obj_mainchara.y); |
11 |
} |
12 |
if (w_timer >= 30 && w_timer < 120) |
13 |
{ |
14 |
pour_index += 0.2; |
15 |
draw_sprite(spr_mainchara_pourwater, floor(pour_index), xx, obj_mainchara.y); |
16 |
if (pour_index >= 5.8) |
17 |
pour_index = 4.2; |
18 |
} |
19 |
if (w_timer >= 120) |
20 |
{ |
21 |
pour_index += 0.2; |
22 |
if (pour_index <= 7.8) |
23 |
{ |
24 |
draw_sprite(spr_mainchara_pourwater, floor(pour_index), xx, obj_mainchara.y); |
25 |
} |
26 |
else if (xx < thisx) |
27 |
{ |
28 |
xx += 1; |
29 |
draw_sprite(spr_maincharal_water, floor(w_timer / 3), xx, obj_mainchara.y); |
30 |
} |
31 |
else |
32 |
{ |
33 |
global.flag[366 have_water] = 0; |
34 |
with (obj_watercooler) |
35 |
havewater = 0; |
36 |
obj_mainchara.visible = true; |
37 |
with (obj_mainchara) |
38 |
{ |
39 |
lsprite = spr_maincharal; |
40 |
usprite = spr_maincharau; |
41 |
dsprite = spr_maincharad; |
42 |
rsprite = spr_maincharar; |
43 |
} |
44 |
w_active = 0; |
45 |
con = 11; |
46 |
} |
47 |
} |
48 |
} |