1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var xbound_left = 50; |
4 |
var xbound_right = 180; |
5 |
var ybound_top = 100; |
6 |
var ybound_bottom = 190; |
7 |
switch (scene) |
8 |
{ |
9 |
case 0: |
10 |
path_noloop = false; |
11 |
cutscene_wait(2); |
12 |
break; |
13 |
break; |
14 |
case 1: |
15 |
with (obj_steamworks_13_vines) |
16 |
{ |
17 |
image_speed = 1; |
18 |
if (image_index >= 4) |
19 |
{ |
20 |
if (!other.path_noloop) |
21 |
{ |
22 |
pl_path = path_add(); |
23 |
path_set_closed(pl_path, false); |
24 |
path_add_point(pl_path, obj_player_npc.x, obj_player_npc.y, 30); |
25 |
path_add_point(pl_path, obj_player_npc.x, obj_player_npc.y - 3, 70); |
26 |
path_add_point(pl_path, obj_player_npc.x, 165, 100); |
27 |
path_add_point(pl_path, obj_player_npc.x, 165, 50); |
28 |
path_add_point(pl_path, obj_player_npc.x, 160, 50); |
29 |
path_add_point(pl_path, obj_player_npc.x, 165, 100); |
30 |
other.path_noloop = true; |
31 |
with (obj_player_npc) |
32 |
path_start(other.pl_path, 3, path_action_stop, false); |
33 |
} |
34 |
} |
35 |
if (image_index >= (image_number - 1)) |
36 |
{ |
37 |
image_alpha = 0; |
38 |
image_speed = 0; |
39 |
if (obj_player_npc.path_position >= 1) |
40 |
{ |
41 |
path_delete(pl_path); |
42 |
instance_destroy(); |
43 |
other.scene++; |
44 |
} |
45 |
} |
46 |
} |
47 |
break; |
48 |
case 2: |
49 |
cutscene_wait(1.5); |
50 |
break; |
51 |
case 3: |
52 |
with (obj_player_npc) |
53 |
{ |
54 |
if (path_index != pt_pljump) |
55 |
{ |
56 |
y -= 10; |
57 |
sprite_index = spr_pl_right; |
58 |
image_index = 1; |
59 |
image_angle = 0; |
60 |
path_start(pt_pljump, 2, path_action_stop, false); |
61 |
audio_play_sound(snd_playerjump, 1, 0); |
62 |
other.scene++; |
63 |
} |
64 |
} |
65 |
obj_pl.image_angle = 0; |
66 |
break; |
67 |
case 4: |
68 |
if (obj_player_npc.path_position >= 1) |
69 |
{ |
70 |
instance_destroy(obj_player_npc); |
71 |
scene++; |
72 |
} |
73 |
break; |
74 |
case 5: |
75 |
cutscene_wait(1); |
76 |
break; |
77 |
case 6: |
78 |
with (obj_flowey_npc) |
79 |
{ |
80 |
image_alpha = 1; |
81 |
image_speed = 0.2; |
82 |
if (image_index >= (image_number - 1)) |
83 |
{ |
84 |
other.scene++; |
85 |
action_sprite = false; |
86 |
npc_direction = "left"; |
87 |
obj_pl.direction = 0; |
88 |
} |
89 |
} |
90 |
break; |
91 |
case 7: |
92 |
cutscene_dialogue(); |
93 |
with (msg) |
94 |
{ |
95 |
talker[0] = 3194; |
96 |
message[0] = "* Howdy!"; |
97 |
message[1] = "* Glad I was able to catch# ya in time!"; |
98 |
message[2] = "* What is this, the third# tumble you've survived# on your journey?"; |
99 |
message[3] = "* For having the name# \"Clover\" you sure aren't# lucky!"; |
100 |
message[4] = "* I'm only kiddin' around# of course."; |
101 |
message[5] = "* I'd say you're more of# a machine than that bot# up there, haha!"; |
102 |
message[6] = "* Gosh, I hoped we had a# straight shot to an exit# but... of course not."; |
103 |
message[7] = "* If you meet that hunk# of metal again, try not# to get caught."; |
104 |
message[8] = "* Or... ya know...# killed."; |
105 |
message[9] = "* Although, dying WOULD# save more time now that# I think about it..."; |
106 |
message[10] = "* I could just revive ya# on the spot!"; |
107 |
message[11] = "* No amount of gruesome# deaths could stop ol'# Clover!"; |
108 |
message[12] = "* Ain't that neato?"; |
109 |
prt[0] = 348; |
110 |
prt[1] = 3251; |
111 |
prt[2] = 347; |
112 |
prt[3] = 349; |
113 |
prt[4] = 3251; |
114 |
prt[5] = 348; |
115 |
prt[6] = 353; |
116 |
prt[7] = 347; |
117 |
prt[8] = 357; |
118 |
prt[9] = 349; |
119 |
prt[10] = 348; |
120 |
prt[11] = 3251; |
121 |
prt[12] = 347; |
122 |
} |
123 |
break; |
124 |
case 8: |
125 |
with (obj_flowey_npc) |
126 |
{ |
127 |
if (sprite_index != spr_floweyleave) |
128 |
{ |
129 |
action_sprite = true; |
130 |
sprite_index = spr_floweyleave; |
131 |
image_alpha = 1; |
132 |
image_speed = 0.25; |
133 |
image_index = 0; |
134 |
} |
135 |
else if (image_index > (image_number - 1)) |
136 |
{ |
137 |
other.scene++; |
138 |
instance_destroy(); |
139 |
} |
140 |
} |
141 |
break; |
142 |
case 9: |
143 |
cutscene_camera_move(obj_pl.x, obj_pl.y, 3); |
144 |
break; |
145 |
case 10: |
146 |
camera_set_view_target(view_camera[0], 1031); |
147 |
global.sworks_flag[3] = 1; |
148 |
cutscene_end(); |
149 |
break; |
150 |
} |