1 |
if (global.flag[379 noelle_beat_fear] == 0) |
2 |
{ |
3 |
timer++; |
4 |
left = false; |
5 |
right = false; |
6 |
down = false; |
7 |
if (instance_exists(obj_masterPlatformController)) |
8 |
controlled = obj_masterPlatformController.plat[obj_masterPlatformController.currentPlatform - 1]; |
9 |
if (myinteract == 3) |
10 |
{ |
11 |
if (i_ex(mydialoguer) == false) |
12 |
{ |
13 |
global.interact = 0; |
14 |
myinteract = 0; |
15 |
with (obj_mainchara) |
16 |
onebuffer = 5; |
17 |
} |
18 |
} |
19 |
if (rotate == true && blocked == 0) |
20 |
{ |
21 |
global.interact = 1; |
22 |
if (!instance_exists(obj_holemouse) && i_ex(controlled)) |
23 |
{ |
24 |
if (left_h()) |
25 |
{ |
26 |
with (controlled) |
27 |
move = -1; |
28 |
} |
29 |
if (right_h()) |
30 |
{ |
31 |
with (controlled) |
32 |
move = 1; |
33 |
} |
34 |
if (down_p() && controlled.phase >= 3 && controlled.moving == 0) |
35 |
{ |
36 |
with (controlled.hole) |
37 |
{ |
38 |
mousecreate = 1; |
39 |
gentimer = 20; |
40 |
} |
41 |
} |
42 |
} |
43 |
if (i_ex(controlled)) |
44 |
{ |
45 |
if (left_h() && right_h()) |
46 |
{ |
47 |
with (controlled) |
48 |
move = 0; |
49 |
} |
50 |
if (!left_h() && !right_h()) |
51 |
{ |
52 |
with (controlled) |
53 |
move = 0; |
54 |
} |
55 |
} |
56 |
} |
57 |
if (i_ex(controlled)) |
58 |
{ |
59 |
if (controlled.move == 1) |
60 |
right = true; |
61 |
if (controlled.move == -1) |
62 |
left = true; |
63 |
} |
64 |
if (instance_exists(obj_holemouse_generator)) |
65 |
{ |
66 |
with (obj_holemouse_generator) |
67 |
{ |
68 |
if (gentimer > 0) |
69 |
other.down = true; |
70 |
} |
71 |
} |
72 |
} |