1 |
switch (scene) |
2 |
{ |
3 |
case 0: |
4 |
if (obj_pl.x < 300) |
5 |
{ |
6 |
scr_cutscene_start(); |
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(270, 0.8); |
28 |
break; |
29 |
case 7: |
30 |
cutscene_screenshake(1, 4); |
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] = "* INTRUDER SPOTTED.# STEAMWORKS: EASTERN# BRANCH."; |
51 |
message[2] = "* YOUR CRIMES ARE AS# FOLLOWS:"; |
52 |
message[3] = "* - TRESPASSING ON# PRIVATE PROPERTY."; |
53 |
message[4] = "* - UTILIZING MACHINERY# WITHOUT PERMISSION."; |
54 |
message[5] = "* - HUMAN."; |
55 |
message[6] = "* HOW TO YOU PLEAD TO# THESE ACCUSATIONS?"; |
56 |
prt[0] = 473; |
57 |
prt[1] = 473; |
58 |
prt[2] = 473; |
59 |
prt[3] = 473; |
60 |
prt[4] = 473; |
61 |
prt[5] = 473; |
62 |
ch_msg = 6; |
63 |
ch[1] = "Not guilty"; |
64 |
ch[2] = "Guilty"; |
65 |
if (outcome == 1) |
66 |
{ |
67 |
message[7] = "* PLAYING TOUGH ARE WE?"; |
68 |
message[8] = "* THAT IS NO MATTER."; |
69 |
message[9] = "* I WILL SCAN YOUR FACE# WITH MY LIE DETECTOR."; |
70 |
prt[7] = 473; |
71 |
prt[8] = 473; |
72 |
prt[9] = 473; |
73 |
other.scene = 12; |
74 |
} |
75 |
if (outcome == 2) |
76 |
{ |
77 |
message[7] = "* REALLY?"; |
78 |
message[8] = "* THAT WAS EASY."; |
79 |
message[9] = "* YOUR CRIMES WILL BE# REPORTED TO AN# AUTHORITY."; |
80 |
message[10] = "* OH WAIT, THAT IS ME."; |
81 |
message[11] = "* ENJOY YOUR ISOLATION,# HUMAN."; |
82 |
prt[7] = 473; |
83 |
prt[8] = 473; |
84 |
prt[9] = 473; |
85 |
prt[10] = 473; |
86 |
prt[11] = 473; |
87 |
other.scene = 15; |
88 |
} |
89 |
} |
90 |
break; |
91 |
case 12: |
92 |
if (global.dialogue_open) |
93 |
exit; |
94 |
with (obj_pl) |
95 |
scr_axis_clover_scanscr_axis_clover_scanfunction scr_axis_clover_scan()
{
if (live_call())
return global.live_result;
var width = sprite_get_width(sprite_index);
var height = sprite_get_height(sprite_index);
i_inc = width / 20;
j_inc = 1;
var x_left = x - sprite_xoffset;
var y_top = (y + sprite_yoffset) - sprite_height;
for (var j = 0; j < height; j += j_inc)
{
part = instance_create(x_left, y_top + j, obj_piece_clover_scan);
with (part)
{
target_x = other.x;
target_y = other.y;
depth = other.depth - 1;
left = 0;
top = j;
self.width = width;
self.height = other.j_inc;
sprite_index = other.sprite_index;alarm[0]
if (j == 0)
event_perform(ev_alarm, 0);
}
}
} (); |
96 |
cutscene_sfx_play(271, 1); |
97 |
audio_sound_pitch(snd_elevator, 2); |
98 |
break; |
99 |
case 13: |
100 |
cutscene_wait(3); |
101 |
break; |
102 |
case 14: |
103 |
cutscene_dialogue(); |
104 |
with (msg) |
105 |
{ |
106 |
talker[0] = 1166; |
107 |
message[0] = "* INCREDIBLE."; |
108 |
message[1] = "* YOU HAVE THE MOST# EMOTIONLESS FACE I HAVE# EVER SEEN."; |
109 |
message[2] = "* I WILL JUST HAVE TO GO# WITH MY NON-EXISTENT GUT# AND SAY YOU WERE LYING."; |
110 |
message[3] = "* ENJOY YOUR ISOLATION,# HUMAN."; |
111 |
prt[0] = 473; |
112 |
prt[1] = 473; |
113 |
prt[2] = 473; |
114 |
prt[3] = 473; |
115 |
} |
116 |
break; |
117 |
case 15: |
118 |
if (global.dialogue_open == true) |
119 |
exit; |
120 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(arg0, arg1)
{
var snd = arg0;
var fade_len = arg1;
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len);
if (instance_exists(obj_audio_fade_helper))
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd;
} (cutscene_music, 300); |
121 |
cutscene_sfx_play(293, 1); |
122 |
break; |
123 |
case 16: |
124 |
cutscene_instance_create(obj_pl.x, obj_pl.y + 5, 2021); |
125 |
break; |
126 |
case 17: |
127 |
cutscene_wait(1); |
128 |
break; |
129 |
case 18: |
130 |
cutscene_sfx_play(401, 1); |
131 |
break; |
132 |
case 19: |
133 |
with (obj_pl) |
134 |
{ |
135 |
direction = 270; |
136 |
image_alpha = 0.75; |
137 |
} |
138 |
instance_destroy(obj_steamworks_footsteps); |
139 |
cutscene_advance(); |
140 |
break; |
141 |
case 20: |
142 |
with (obj_pl) |
143 |
{ |
144 |
direction = 270; |
145 |
image_angle -= 1; |
146 |
} |
147 |
var fall_speed = 10; |
148 |
for (var i = 1000002; i >= 999998; i--) |
149 |
tile_layer_shift(i, 0, -fall_speed); |
150 |
layer_y("ts_steamworks", layer_get_y("ts_steamworks") - fall_speed); |
151 |
with (obj_asset_steamworks_smallgear) |
152 |
y -= fall_speed; |
153 |
obj_axis_npc.y -= fall_speed; |
154 |
obj_steamworks_12_trapdoor.y -= fall_speed; |
155 |
cutscene_wait(2); |
156 |
break; |
157 |
case 21: |
158 |
with (obj_pl) |
159 |
{ |
160 |
direction = 270; |
161 |
image_angle -= 1; |
162 |
image_alpha -= 0.1; |
163 |
} |
164 |
if (obj_pl.image_alpha <= 0) |
165 |
cutscene_wait(0.5); |
166 |
break; |
167 |
case 22: |
168 |
cutscene_sfx_play(263, 0.3); |
169 |
break; |
170 |
case 23: |
171 |
cutscene_wait(0.5); |
172 |
break; |
173 |
case 24: |
174 |
cutscene_change_room(160, 110, 150, 0.025); |
175 |
break; |
176 |
} |