1 |
if (con == 0) |
2 |
{ |
3 |
with (obj_camera_area) |
4 |
instance_destroy(); |
5 |
with (obj_camera_advanced) |
6 |
{ |
7 |
targetYRelative[1] = -180; |
8 |
lerpTime[1] = 2; |
9 |
panSpeedInit[1] = 32; |
10 |
panSpeedMax[1] = 36; |
11 |
} |
12 |
with (obj_saucer) |
13 |
{ |
14 |
if (i_ex(collider)) |
15 |
{ |
16 |
with (collider) |
17 |
instance_destroy(); |
18 |
} |
19 |
} |
20 |
with (obj_caterpillarchara) |
21 |
visible = false; |
22 |
with (obj_mainchara) |
23 |
visible = false; |
24 |
dogtable = instance_create(320, 3080, obj_dogtable_controlled); |
25 |
dogtable.vspeed = -16; |
26 |
con++; |
27 |
} |
28 |
if (tablespawn == true) |
29 |
{ |
30 |
instance_create(166, 320, obj_saucer_dining3Spawner); |
31 |
instance_create(270, 320, obj_saucer_dining3Spawner); |
32 |
instance_create(374, 320, obj_saucer_dining3Spawner); |
33 |
tablespawn = false; |
34 |
} |
35 |
if (con == 2) |
36 |
{ |
37 |
for (var i = 0; i < 3; i++) |
38 |
{ |
39 |
shade = instance_create(166 + (i * 104), 364, obj_marker); |
40 |
shade.sprite_index = spr_saucershadow; |
41 |
shade.image_alpha = 0.25; |
42 |
shade.image_xscale = 2; |
43 |
shade.image_yscale = 2; |
44 |
shade.depth = 890000; |
45 |
} |
46 |
with (obj_caterpillarchara) |
47 |
visible = false; |
48 |
with (obj_mainchara) |
49 |
visible = false; |
50 |
global.interact = 1; |
51 |
cutscene_master = scr_cutscene_makescr_cutscene_makefunction scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} (); |
52 |
scr_maincharacters_actorsscr_maincharacters_actorsfunction scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} (); |
53 |
with (obj_dogtable_controlled) |
54 |
drawtype = 1; |
55 |
dog = remdog; |
56 |
memx = dog.x; |
57 |
memy = dog.y; |
58 |
cutscene_master.save_object[0] = dog; |
59 |
con++; |
60 |
} |
61 |
if (con == 3) |
62 |
{ |
63 |
con = -999; |
64 |
c_soundplay(snd_impact); |
65 |
c_var_instance(dog, "x", memx); |
66 |
c_var_instance(dog, "y", memy); |
67 |
c_shake(); |
68 |
c_var_instance(dog, "depth", 890000); |
69 |
c_sel(kr); |
70 |
c_setxy(dog.x - 21, dog.y - 60); |
71 |
c_sel(ra); |
72 |
c_setxy(dog.x - 60, dog.y - 76); |
73 |
c_sel(su); |
74 |
c_setxy(dog.x + 12, dog.y - 82); |
75 |
c_sel(kr); |
76 |
c_autowalk(0); |
77 |
c_imagespeed(0.25); |
78 |
c_sprite(spr_kris_jump_ball); |
79 |
c_jumpc_jumpfunction c_jump(arg0, arg1, arg2, arg3)
{
c_cmd("jump", arg0, arg1, arg2, arg3);
} (300, 230, 20, 30); |
80 |
c_sel(ra); |
81 |
c_autowalk(0); |
82 |
c_imagespeed(0.25); |
83 |
c_sprite(spr_ralsei_jump_ball); |
84 |
c_imagespeed(1); |
85 |
c_jumpc_jumpfunction c_jump(arg0, arg1, arg2, arg3)
{
c_cmd("jump", arg0, arg1, arg2, arg3);
} (254, 190, 20, 30); |
86 |
c_sel(su); |
87 |
c_autowalk(0); |
88 |
c_imagespeed(0.25); |
89 |
c_sprite(spr_susie_dw_jump_ball); |
90 |
c_jumpc_jumpfunction c_jump(arg0, arg1, arg2, arg3)
{
c_cmd("jump", arg0, arg1, arg2, arg3);
} (338, 186, 20, 30); |
91 |
c_wait(15); |
92 |
c_wait(15); |
93 |
c_sel(kr); |
94 |
c_imagespeed(0.25); |
95 |
c_sprite(spr_kris_dw_landed); |
96 |
c_sel(ra); |
97 |
c_imagespeed(0.25); |
98 |
c_imageindex(0); |
99 |
c_sprite(spr_teacup_ralsei_land); |
100 |
c_sel(su); |
101 |
c_autowalk(0); |
102 |
c_imagespeed(0.25); |
103 |
c_sprite(spr_susie_dw_landed); |
104 |
c_var_lerp_instancec_var_lerp_instancefunction c_var_lerp_instance()
{
if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} (dog, "x", memx, 704, 16); |
105 |
c_wait(6); |
106 |
c_var_instance(id, "tablespawn", true); |
107 |
c_wait(6); |
108 |
c_sel(ra); |
109 |
c_facing("r"); |
110 |
c_autowalk(1); |
111 |
c_sel(kr); |
112 |
c_facing("u"); |
113 |
c_autowalk(1); |
114 |
c_sel(su); |
115 |
c_facing("d"); |
116 |
c_autowalk(1); |
117 |
c_wait(15); |
118 |
c_sel(su); |
119 |
c_autowalk(1); |
120 |
c_facing("d"); |
121 |
c_sel(ra); |
122 |
c_facing("r"); |
123 |
c_sel(su); |
124 |
c_wait(10); |
125 |
c_sprite(spr_susie_pose); |
126 |
c_speaker("susie"); |
127 |
c_msgsetloc(0, Face 9* Hahah,Delay 11 was that awesome or what?!Wait for input"\\E9* Hahah^1, was that awesome or what?!/", "obj_controller_dininghall_slash_Step_0_gml_146_0" ); |
128 |
c_facenext("ralsei", "K"); |
129 |
c_msgnextloc(Face K* Umm,Delay 11 maybe minus the blatant destruction...Wait for inputClose Message"\\EK* Umm^1, maybe minus the blatant destruction.../%", "obj_controller_dininghall_slash_Step_0_gml_149_0" ); |
130 |
c_talk_wait(); |
131 |
c_sel(ra); |
132 |
c_facing("d"); |
133 |
c_sel(su); |
134 |
c_facing("d"); |
135 |
c_wait(6); |
136 |
c_speaker("ralsei"); |
137 |
c_msgsetloc(0, Face 2* Let's go,Delay 11 Kris!Delay 11 We're almost at the third floor!Wait for inputClose Message"\\E2* Let's go^1, Kris^1! We're almost at the third floor!/%", "obj_controller_dininghall_slash_Step_0_gml_160_0" ); |
138 |
c_talk_wait(); |
139 |
c_sel(kr); |
140 |
c_facing("d"); |
141 |
c_actortokris(); |
142 |
c_actortocaterpillar(); |
143 |
c_var_instance(id, "con", 4); |
144 |
c_terminatekillactors(); |
145 |
} |
146 |
if (con == 4) |
147 |
{ |
148 |
with (obj_dogtable_controlled) |
149 |
instance_destroy(); |
150 |
with (obj_mainchara) |
151 |
visible = true; |
152 |
with (obj_caterpillarchara) |
153 |
visible = true; |
154 |
global.flag[7 disable_menu?] = 0; |
155 |
global.interact = 0; |
156 |
global.flag[382 dining_hall_complete] = 1; |
157 |
alarm[0] |
158 |
con++; |
159 |
} |