1 |
if (con == 1 && !d_ex()) |
2 |
{ |
3 |
global.interact = 1; |
4 |
hand2 = instance_create(498, 258, obj_marker); |
5 |
hand2.sprite_index = spr_dw_mansion_hands_cutscene; |
6 |
hand2.image_xscale = -2; |
7 |
hand2.image_yscale = 2; |
8 |
hand2.depth = depth - 30; |
9 |
hand2.image_index = 1; |
10 |
hand2.image_speed = 0; |
11 |
coverup = instance_create(416, 246, obj_marker); |
12 |
coverup.sprite_index = spr_mansion_hands_coverup; |
13 |
coverup.image_xscale = 2; |
14 |
coverup.image_yscale = 2; |
15 |
coverup.depth = hand2.depth - 20; |
16 |
bubbles2 = instance_create(420, 238, obj_marker); |
17 |
bubbles2.sprite_index = spr_mansion_hands_bubbles; |
18 |
bubbles2.image_speed = 0.25; |
19 |
bubbles2.image_xscale = 2; |
20 |
bubbles2.image_yscale = 2; |
21 |
bubbles2.depth = hand2.depth - 100; |
22 |
con++; |
23 |
} |
24 |
if (con == 2) |
25 |
{ |
26 |
if (hand2.y > 64) |
27 |
{ |
28 |
hand2.y -= 2; |
29 |
} |
30 |
else |
31 |
{ |
32 |
hand2.y = 64; |
33 |
timer = 0; |
34 |
con++; |
35 |
} |
36 |
} |
37 |
if (con == 3) |
38 |
{ |
39 |
timer++; |
40 |
if (timer == 1) |
41 |
{ |
42 |
with (coverup) |
43 |
instance_destroy(); |
44 |
timer = 0; |
45 |
con++; |
46 |
} |
47 |
} |
48 |
if (con == 4) |
49 |
{ |
50 |
timer++; |
51 |
if (timer == 5) |
52 |
con++; |
53 |
} |
54 |
if (con == 5) |
55 |
{ |
56 |
with (hand1) |
57 |
scr_move_to_point_over_time(x - 64, y, 14); |
58 |
with (hand2) |
59 |
scr_move_to_point_over_time(x + 64, y, 14); |
60 |
timer = 0; |
61 |
con++; |
62 |
} |
63 |
if (con == 6) |
64 |
{ |
65 |
timer++; |
66 |
if (timer == 15) |
67 |
con++; |
68 |
} |
69 |
if (con == 7) |
70 |
{ |
71 |
with (hand1) |
72 |
scr_move_to_point_over_time(x + 164, y, 8); |
73 |
with (hand2) |
74 |
scr_move_to_point_over_time(x - 164, y, 8); |
75 |
timer = 0; |
76 |
con++; |
77 |
} |
78 |
if (con == 8) |
79 |
{ |
80 |
timer++; |
81 |
if (timer < 8 && (timer % 2) == 0) |
82 |
{ |
83 |
with (hand1) |
84 |
scr_afterimagefastscr_afterimagefastfunction scr_afterimagefast()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
afterimage.fadeSpeed = 0.08;
return afterimage;
} (); |
85 |
with (hand2) |
86 |
scr_afterimagefastscr_afterimagefastfunction scr_afterimagefast()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
afterimage.fadeSpeed = 0.08;
return afterimage;
} (); |
87 |
} |
88 |
if (timer == 8) |
89 |
{ |
90 |
snd_play(snd_whip_crack_only); |
91 |
instance_create(x, y, obj_shake); |
92 |
} |
93 |
if (timer == 9) |
94 |
{ |
95 |
with (hand1) |
96 |
scr_move_to_point_over_time(x - 100, y, 16); |
97 |
with (hand2) |
98 |
scr_move_to_point_over_time(x + 100, y, 16); |
99 |
timer = 0; |
100 |
with (obj_bridgeSwapper) |
101 |
alarm[0] |
102 |
con++; |
103 |
} |
104 |
} |
105 |
if (con == 9) |
106 |
{ |
107 |
timer++; |
108 |
if (timer == 45) |
109 |
{ |
110 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("no_name"); |
111 |
msgsetloc(0, * (Looks like the hand is out of the way now...)Wait for inputClose Message"* (Looks like the hand is out of the way now...)/%", "obj_controller_mansion_hands_slash_Step_0_gml_115_0" ); |
112 |
d_make(); |
113 |
con++; |
114 |
timer = 0; |
115 |
} |
116 |
} |
117 |
if (con == 10 && !d_ex()) |
118 |
{ |
119 |
if (timer == 0) |
120 |
scr_camerareset(12); |
121 |
timer++; |
122 |
if (timer == 13) |
123 |
{ |
124 |
global.interact = 0; |
125 |
global.facing = 0; |
126 |
scr_tempsave(); |
127 |
con++; |
128 |
} |
129 |
} |
130 |
if (con > 3) |
131 |
{ |
132 |
if (i_ex(bubbles2)) |
133 |
{ |
134 |
with (bubbles2) |
135 |
x = other.hand2.x - 82; |
136 |
} |
137 |
} |
138 |
if (i_ex(bubbles1)) |
139 |
{ |
140 |
with (bubbles1) |
141 |
x = other.hand1.x - 82; |
142 |
} |