1 |
switch scene |
2 |
{ |
3 |
case 0: |
4 |
if (obj_pl.x < 320) |
5 |
{ |
6 |
scr_cutscene_startscr_cutscene_startfunction scr_cutscene_start() //gml_Script_scr_cutscene_start
{
global.cutscene = true
obj_pl.state = gml_Script_scr_frozen_state
obj_pl.image_index = 0
obj_pl.image_speed = 0
} () |
7 |
cutscene_advance() |
8 |
} |
9 |
break |
10 |
case 1: |
11 |
cutscene_wait(0.5) |
12 |
break |
13 |
case 2: |
14 |
cutscene_camera_move(220, obj_pl.y, 1, false) |
15 |
break |
16 |
case 3: |
17 |
cutscene_audio_fade(obj_radio.current_song, 0, 300, 0.25, false, true) |
18 |
break |
19 |
case 4: |
20 |
cutscene_wait(1) |
21 |
break |
22 |
case 5: |
23 |
tile_layer_hide(-1000) |
24 |
cutscene_advance() |
25 |
break |
26 |
case 6: |
27 |
cutscene_sfx_play(snd_elevator_start, 0.8) |
28 |
break |
29 |
case 7: |
30 |
cutscene_screenshake(0.5, 2) |
31 |
break |
32 |
case 8: |
33 |
cutscene_wait(0.5) |
34 |
break |
35 |
case 9: |
36 |
cutscene_music_start(219) |
37 |
break |
38 |
case 10: |
39 |
cutscene_npc_walk(1166, 190, obj_pl.y, 4, "y", "right", false) |
40 |
break |
41 |
case 11: |
42 |
cutscene_dialogue() |
43 |
with (msg) |
44 |
{ |
45 |
color = true |
46 |
col_modif[0] = 16711935 |
47 |
talker[0] = 1166 |
48 |
message[0] = "* AXIS MODEL 014 READY TO# GUARD AND PROTECT." |
49 |
message_col[0][0] = " AXIS " |
50 |
message[1] = "* INTRUDERS SPOTTED.# STEAMWORKS: EASTERN# BRANCH." |
51 |
prt[0] = 473 |
52 |
prt[1] = 473 |
53 |
} |
54 |
break |
55 |
case 12: |
56 |
with (obj_ceroba_follower) |
57 |
{ |
58 |
image_alpha = 0 |
59 |
instance_create(x, y, obj_ceroba_npc) |
60 |
obj_ceroba_npc.npc_direction = "left" |
61 |
obj_ceroba_npc.sprite_index = obj_ceroba_follower.sprite_index |
62 |
} |
63 |
cutscene_advance() |
64 |
break |
65 |
case 13: |
66 |
cutscene_npc_walk(1161, (obj_pl.x - 30), obj_pl.y, 4, "y", "left") |
67 |
break |
68 |
case 14: |
69 |
cutscene_dialogue() |
70 |
with (msg) |
71 |
{ |
72 |
talker[0] = 1161 |
73 |
talker[1] = 1166 |
74 |
talker[2] = 1161 |
75 |
talker[3] = 1166 |
76 |
talker[4] = 1161 |
77 |
talker[6] = 1166 |
78 |
talker[10] = 1161 |
79 |
talker[13] = 1166 |
80 |
talker[18] = 1161 |
81 |
message[0] = "* Wait! Who are you!?" |
82 |
message[1] = "* AXIS MODEL 014 READY TO# GUARD AND PROTECT." |
83 |
message[2] = "* You just said that." |
84 |
message[3] = "* MY VOCABULARY IS NOT# EXPANSIVE, MA'AM." |
85 |
message[4] = "* Okay... Well, I wasn't# expecting anyone to be# here." |
86 |
message[5] = "* If you let us through,# we'll be out of your# hair." |
87 |
message[6] = "* ONE: I DO NOT HAVE# HAIR." |
88 |
message[7] = "* TWO: I CANNOT ALLOW YOU# TO PASS." |
89 |
message[8] = "* YOU HAVE TRESPASSED ON# PRIVATE PROPERTY." |
90 |
message[9] = "* YOU HAVE ALSO UTILIZED# MACHINERY WITHOUT# PERMISSION. " |
91 |
message[10] = "* No, no! We're just# heading to Hotland." |
92 |
message[11] = "* We aren't malicious in# the slightest!" |
93 |
message[12] = "* It was us who woke up# this place. Isn't it# nice to have power?" |
94 |
message[13] = "* WHILE IT IS NICE TO BE# OPERATIONAL AGAIN, IT IS# ALSO NOT NICE." |
95 |
message[14] = "* I AM THE LAST OF MY# KIND TO POLICE THIS# AREA." |
96 |
message[15] = "* ALL OF MY COMRADES HAVE# RUSTED OVER." |
97 |
message[16] = "* I ALWAYS KNEW I WAS THE# BEST BUT I AM ALSO# LONELY NOW. OH WELL." |
98 |
message[17] = "* I WILL NOW TRAP YOU IN# A COLD, DARK ROOM, FOR# WHICH YOU MIGHT PERISH." |
99 |
message[18] = "* My husband, Chujin,# used to work here! I# have permission!" |
100 |
message[19] = "* Don't make me hurt you." |
101 |
prt[0] = 388 |
102 |
prt[1] = 473 |
103 |
prt[2] = 382 |
104 |
prt[3] = 473 |
105 |
prt[4] = 394 |
106 |
prt[5] = 371 |
107 |
prt[6] = 473 |
108 |
prt[7] = 473 |
109 |
prt[8] = 473 |
110 |
prt[9] = 473 |
111 |
prt[10] = 381 |
112 |
prt[11] = 381 |
113 |
prt[12] = 3754 |
114 |
prt[13] = 473 |
115 |
prt[14] = 473 |
116 |
prt[15] = 473 |
117 |
prt[16] = 473 |
118 |
prt[17] = 473 |
119 |
prt[18] = 371 |
120 |
prt[19] = 394 |
121 |
} |
122 |
break |
123 |
case 15: |
124 |
cutscene_npc_action_sprite(1161, 77, (1/3), true, 0) |
125 |
break |
126 |
case 16: |
127 |
cutscene_wait(0.5) |
128 |
break |
129 |
case 17: |
130 |
cutscene_instance_create(obj_axis_npc.x, (obj_axis_npc.y - 28), obj_cutscene_ex) |
131 |
break |
132 |
case 18: |
133 |
cutscene_wait(0.8) |
134 |
break |
135 |
case 19: |
136 |
instance_destroy(obj_cutscene_ex) |
137 |
cutscene_advance() |
138 |
break |
139 |
case 20: |
140 |
cutscene_audio_fade(cutscene_music, 0, 300, 0.25, false, true) |
141 |
break |
142 |
case 21: |
143 |
cutscene_dialogue() |
144 |
with (msg) |
145 |
{ |
146 |
talker[0] = 1166 |
147 |
talker[1] = 1161 |
148 |
message[0] = "* CHUJIN? MY CREATOR?" |
149 |
message[1] = "* Huh?" |
150 |
prt[0] = 473 |
151 |
prt[1] = 393 |
152 |
} |
153 |
if (msg.message_current == 1) |
154 |
obj_ceroba_npc.action_sprite = false |
155 |
break |
156 |
case 22: |
157 |
cutscene_npc_direction(obj_axis_npc, "down") |
158 |
break |
159 |
case 23: |
160 |
cutscene_wait(0.2) |
161 |
break |
162 |
case 24: |
163 |
cutscene_npc_direction(obj_axis_npc, "left") |
164 |
break |
165 |
case 25: |
166 |
cutscene_wait(0.2) |
167 |
break |
168 |
case 26: |
169 |
cutscene_npc_direction(obj_axis_npc, "up") |
170 |
break |
171 |
case 27: |
172 |
cutscene_wait(0.2) |
173 |
break |
174 |
case 28: |
175 |
cutscene_npc_direction(obj_axis_npc, "right") |
176 |
break |
177 |
case 29: |
178 |
cutscene_wait(1.5) |
179 |
break |
180 |
case 30: |
181 |
cutscene_dialogue() |
182 |
with (msg) |
183 |
{ |
184 |
talker[0] = 1166 |
185 |
message[0] = "* SORRY, I DO NOT SEE HIM# PRESENT." |
186 |
message[1] = "* GOODBYE." |
187 |
prt[0] = 473 |
188 |
prt[1] = 473 |
189 |
} |
190 |
break |
191 |
case 31: |
192 |
cutscene_sfx_play(snd_rock_break, 1) |
193 |
break |
194 |
case 32: |
195 |
cutscene_instance_create((obj_pl.x - 15), (obj_pl.y + 5), obj_steamworks_12_trapdoor) |
196 |
break |
197 |
case 33: |
198 |
cutscene_wait(1) |
199 |
break |
200 |
case 34: |
201 |
cutscene_dialogue() |
202 |
with (msg) |
203 |
{ |
204 |
talker[0] = 1161 |
205 |
message[0] = "* WAIT!" |
206 |
prt[0] = 381 |
207 |
} |
208 |
break |
209 |
case 35: |
210 |
cutscene_sfx_play(snd_decibatfall, 1) |
211 |
break |
212 |
case 36: |
213 |
with (obj_ceroba_npc) |
214 |
{ |
215 |
action_sprite = true |
216 |
sprite_index = spr_ceroba_fall |
217 |
image_alpha = 0.75 |
218 |
} |
219 |
with (obj_pl) |
220 |
{ |
221 |
direction = 270 |
222 |
image_alpha = 0.75 |
223 |
} |
224 |
instance_destroy(obj_steamworks_footsteps) |
225 |
cutscene_advance() |
226 |
break |
227 |
case 37: |
228 |
with (obj_ceroba_npc) |
229 |
image_angle += 1.5 |
230 |
with (obj_pl) |
231 |
{ |
232 |
direction = 270 |
233 |
image_angle -= 1 |
234 |
} |
235 |
var fall_speed = 10 |
236 |
for (var i = 1000002; i >= 999998; i--) |
237 |
tile_layer_shift(i, 0, (-fall_speed)) |
238 |
layer_y("ts_steamworks", (layer_get_y("ts_steamworks") - fall_speed)) |
239 |
with (obj_asset_steamworks_smallgear) |
240 |
y -= fall_speed |
241 |
obj_axis_npc.y -= fall_speed |
242 |
obj_steamworks_12_trapdoor.y -= fall_speed |
243 |
cutscene_wait(2) |
244 |
break |
245 |
case 38: |
246 |
with (obj_ceroba_npc) |
247 |
{ |
248 |
image_angle += 1.5 |
249 |
image_alpha -= 0.1 |
250 |
} |
251 |
with (obj_pl) |
252 |
{ |
253 |
direction = 270 |
254 |
image_angle -= 1 |
255 |
image_alpha -= 0.1 |
256 |
} |
257 |
if (obj_pl.image_alpha <= 0 && obj_ceroba_npc.image_alpha <= 0) |
258 |
cutscene_wait(0.5) |
259 |
break |
260 |
case 39: |
261 |
cutscene_sfx_play(snd_undertale_thud, 0.8) |
262 |
break |
263 |
case 40: |
264 |
cutscene_wait(0.3) |
265 |
break |
266 |
case 41: |
267 |
cutscene_sfx_play(snd_toy_squeak, 0.3) |
268 |
break |
269 |
case 42: |
270 |
cutscene_wait(0.5) |
271 |
break |
272 |
case 43: |
273 |
cutscene_change_room(160, 135, 150, 0.025) |
274 |
break |
275 |
} |