1 | if (movecourse == 1) |
2 | { |
3 | if (movedir == 1) |
4 | x += 8; |
5 | if (movedir == 0) |
6 | y += 8; |
7 | if (movedir == 2) |
8 | y -= 8; |
9 | if (movedir == 3) |
10 | x -= 8; |
11 | movetimer += 1; |
12 | if (movetimer >= 5) |
13 | { |
14 | movetimer = 0; |
15 | global.interact = 0; |
16 | movecourse = 0; |
17 | } |
18 | } |
19 | if (myinteract == 3) |
20 | { |
21 | if (i_ex(mydialoguer) == false) |
22 | { |
23 | global.interact = 0; |
24 | myinteract = 0; |
25 | with (obj_mainchara) |
26 | onebuffer = 5; |
27 | } |
28 | } |
29 | if (reset == true) |
30 | { |
31 | if (con == 0) |
32 | { |
33 | image_alpha *= 0.6; |
34 | if (image_alpha < 0.1) |
35 | { |
36 | image_alpha = 0; |
37 | x = xpos; |
38 | y = ypos; |
39 | con = 1; |
40 | pause = 0; |
41 | } |
42 | } |
43 | if (con == 1) |
44 | { |
45 | pause++; |
46 | if (pause == 10) |
47 | { |
48 | image_alpha = 0.1; |
49 | con = 2; |
50 | } |
51 | } |
52 | if (con == 2) |
53 | { |
54 | image_alpha *= 1.4; |
55 | if (image_alpha >= 1) |
56 | { |
57 | image_alpha = 1; |
58 | con = 0; |
59 | reset = 0; |
60 | global.interact = 0; |
61 | } |
62 | } |
63 | } |