1 |
if (con == -1) |
2 |
{ |
3 |
con = 1; |
4 |
global.interact = 1; |
5 |
global.facing = 1; |
6 |
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;
} (); |
7 |
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;
}
}
}
} (); |
8 |
with (obj_npc_king) |
9 |
visible = 0; |
10 |
qu = actor_count + 2; |
11 |
qu_actor = instance_create(camerax() - 100, 182, obj_actor); |
12 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (qu, qu_actor, "queen"); |
13 |
qu_actor.sprite_index = spr_queen_walk_left; |
14 |
ki = actor_count + 3; |
15 |
ki_actor = instance_create(obj_npc_king.x, obj_npc_king.y, obj_actor); |
16 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (ki, ki_actor, "rouxls"); |
17 |
ki_actor.sprite_index = obj_npc_king.sprite_index; |
18 |
ki_actor.depth = 500100; |
19 |
c_sel(ki); |
20 |
c_autowalk(0); |
21 |
c_autodepth(0); |
22 |
c_depth(500100); |
23 |
ro = actor_count + 4; |
24 |
ro_actor = instance_create(camerax() - 100, 182, obj_actor); |
25 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (ro, ro_actor, "rouxls"); |
26 |
ro_actor.sprite_index = spr_rurus_idle; |
27 |
c_sel(ro); |
28 |
c_autowalk(0); |
29 |
} |
30 |
if (con == 1) |
31 |
{ |
32 |
con = 49; |
33 |
alarm[0] = 30; |
34 |
c_sel(ra); |
35 |
c_walkdirect(1150, 210, 15); |
36 |
c_delayfacing(16, "u"); |
37 |
c_sel(su); |
38 |
c_walkdirect(1190, 204, 15); |
39 |
c_delayfacing(16, "u"); |
40 |
c_sel(kr); |
41 |
c_walkdirect(1238, 220, 15); |
42 |
c_delayfacing(16, "u"); |
43 |
c_wait(16); |
44 |
c_speaker("king"); |
45 |
c_msgsetloc(0, Face 0* You may have bested me. But...Wait for input"\\E0* You may have bested me. But.../", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_59_0" ); |
46 |
c_msgnextloc(Face 7* You'll soon face someone...Delay 11 More fearsome...Wait for input"\\E7* You'll soon face someone..^1. More fearsome.../", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_60_0" ); |
47 |
c_msgnextloc(Face 4* More tyrannical than you could EVER imagine.Wait for input"\\E4* More tyrannical than you could EVER imagine./", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_61_0" ); |
48 |
c_facenext("susie", 1); |
49 |
c_msgnextloc(Face 1* Queen? We already met her.Wait for inputClose Message"\\E1* Queen? We already met her./%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_63_0" ); |
50 |
c_talk_wait(); |
51 |
c_sel(ki); |
52 |
c_sprite(spr_king_sulk_left); |
53 |
c_speaker("king"); |
54 |
c_msgsetloc(0, Face 6* WHAT!?Wait for inputClose Message"\\E6* WHAT!?/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_71_0" ); |
55 |
c_talk_wait(); |
56 |
c_sel(kr); |
57 |
c_facing("l"); |
58 |
c_sel(su); |
59 |
c_facing("l"); |
60 |
c_sel(ra); |
61 |
c_facing("l"); |
62 |
c_sel(qu); |
63 |
c_walkdirect_wait(1020, 182, 20); |
64 |
c_facing("u"); |
65 |
c_wait(30); |
66 |
c_speaker("queen"); |
67 |
c_msgsetloc(0, Face 1* Wow Nice Hamster WheelWait for inputClose Message"\\E1* Wow Nice Hamster Wheel/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_96_0" ); |
68 |
c_talk_wait(); |
69 |
c_sel(ki); |
70 |
c_sprite(spr_king_sulk); |
71 |
c_speaker("king"); |
72 |
c_msgsetloc(0, Face 5* So you,Delay 11 too,Delay 11 have come to humiliate me...Wait for input"\\E5* So you^1, too^1, have come to humiliate me.../", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_104_0" ); |
73 |
c_facenext("queen", 24); |
74 |
c_msgnextloc(Face O* No I Am Serious It's CoolWait for inputClose Message"\\EO* No I Am Serious It's Cool/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_106_0" ); |
75 |
c_talk_wait(); |
76 |
c_wait(10); |
77 |
c_sel(qu); |
78 |
c_walkdirect(1263, 182, 25); |
79 |
c_wait(8); |
80 |
c_sel(kr); |
81 |
c_autowalk(0); |
82 |
c_walk("r", 15, 15); |
83 |
c_sel(su); |
84 |
c_autowalk(0); |
85 |
c_walk("r", 15, 15); |
86 |
c_sel(ra); |
87 |
c_autowalk(0); |
88 |
c_walk("r", 15, 15); |
89 |
c_wait(50); |
90 |
c_sel(qu); |
91 |
c_autowalk(0); |
92 |
c_sprite(spr_cutscene_10_queen_ohoho_standing); |
93 |
c_imageindex(0); |
94 |
c_imagespeed(0.25); |
95 |
c_speaker("queen"); |
96 |
c_msgsetloc(0, Face B* That Water Bottle HoweverWait for inputClose Message"\\EB* That Water Bottle However/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_137_0" ); |
97 |
c_talk_wait(); |
98 |
c_sel(ki); |
99 |
c_sprite(spr_king_sulk_drink); |
100 |
c_autowalk(0); |
101 |
c_imagespeed(0.25); |
102 |
c_var_instance(id, "king_drink", true); |
103 |
c_speaker("king"); |
104 |
c_msgsetloc(0, Face A* DO NOT SPEAK ILL OF THE ROYAL WATER BOTTLE!Wait for inputClose Message"\\EA* DO NOT SPEAK ILL OF THE ROYAL WATER BOTTLE!/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_150_0" ); |
105 |
c_talk_wait(); |
106 |
c_var_instance(id, "king_drink", false); |
107 |
c_sel(qu); |
108 |
c_sprite(spr_queen_wine_left); |
109 |
c_sel(ki); |
110 |
c_sprite(spr_king_sulk_left); |
111 |
c_speaker("queen"); |
112 |
c_msgsetloc(0, Face O* It's Nothing Compared To The One At My MansionWait for inputClose Message"\\EO* It's Nothing Compared To The One At My Mansion/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_163_0" ); |
113 |
c_talk_wait(); |
114 |
c_sel(ki); |
115 |
c_sprite(spr_king_sulk); |
116 |
c_speaker("king"); |
117 |
c_msgsetloc(0, Face 5* Hmph. Materialistic as always.Wait for inputClose Message"\\E5* Hmph. Materialistic as always./%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_171_0" ); |
118 |
c_talk_wait(); |
119 |
c_sel(qu); |
120 |
c_autowalk(1); |
121 |
c_facing("u"); |
122 |
c_speaker("queen"); |
123 |
c_msgsetloc(0, Face 0* Materialism Evaluation DeniedWait for input"\\E0* Materialism Evaluation Denied/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_180_0" ); |
124 |
c_msgnextloc(Face C* I Simply Give Myself: The Treatment I DeserveWait for inputClose Message"\\EC* I Simply Give Myself: The Treatment I Deserve/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_181_0" ); |
125 |
c_talk_wait(); |
126 |
c_autowalk(0); |
127 |
c_sprite(spr_cutscene_10_queen_ohoho_standing); |
128 |
c_imageindex(0); |
129 |
c_imagespeed(0.25); |
130 |
c_speaker("queen"); |
131 |
c_msgsetloc(0, Face D* You Slept Curled Up On A Dirty Throne Every DayWait for inputClose Message"\\ED* You Slept Curled Up On A Dirty Throne Every Day/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_191_0" ); |
132 |
c_talk_wait(); |
133 |
c_sel(ki); |
134 |
c_sprite(spr_king_sulk_drink_left); |
135 |
c_autowalk(0); |
136 |
c_imagespeed(0.25); |
137 |
c_shake(); |
138 |
c_sel(qu); |
139 |
c_imagespeed(0); |
140 |
c_speaker("king"); |
141 |
c_msgsetloc(0, Face A* ENOUGH,Delay 11 WENCH!!!Wait for inputClose Message"\\EA* ENOUGH^1, WENCH!!!/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_206_0" ); |
142 |
c_talk_wait(); |
143 |
c_sel(ki); |
144 |
c_sprite(spr_king_sulk_left); |
145 |
c_wait(30); |
146 |
c_sel(ki); |
147 |
c_sprite(spr_king_sulk); |
148 |
c_sel(qu); |
149 |
c_autowalk(1); |
150 |
c_facing("u"); |
151 |
c_speaker("king"); |
152 |
c_msgsetloc(0, Face B* What purpose have you here... Queenie Beanie.Wait for input"\\EB* What purpose have you here... Queenie Beanie./", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_224_0" ); |
153 |
c_facenext("queen", 13); |
154 |
c_msgnextloc(Face D* Just Thought I Would Send A Message,Delay 11 Kingy WingyWait for input"\\ED* Just Thought I Would Send A Message^1, Kingy Wingy/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_226_0" ); |
155 |
c_msgnextloc(Face 0* That You Don't Have To Worry About LancerWait for inputClose Message"\\E0* That You Don't Have To Worry About Lancer/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_227_0" ); |
156 |
c_talk_wait(); |
157 |
c_sel(qu); |
158 |
c_walkdirect_wait(1305, 182, 15); |
159 |
c_speaker("queen"); |
160 |
c_msgsetloc(0, Face 1* I Will Be Looking After Him From Now OnWait for input"\\E1* I Will Be Looking After Him From Now On/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_235_0" ); |
161 |
c_msgnextloc(Face 5* After All...Delay 11 I Am...Wait for inputClose Message"\\E5* After All..^1. I Am.../%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_236_0" ); |
162 |
c_talk_wait(); |
163 |
c_sel(qu); |
164 |
c_facing("d"); |
165 |
c_speaker("queen"); |
166 |
c_msgsetloc(0, Face 0* His MotherWait for inputClose Message"\\E0* His Mother/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_244_0" ); |
167 |
c_talk_wait(); |
168 |
c_sel(ki); |
169 |
c_shakeobj(); |
170 |
c_sprite(spr_king_sulk_drink_left); |
171 |
c_autowalk(0); |
172 |
c_imagespeed(0.25); |
173 |
c_speaker("king"); |
174 |
c_msgsetloc(0, Face 9* When was that decided!?Wait for inputClose Message"\\E9* When was that decided!?/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_255_0" ); |
175 |
c_talk_wait(); |
176 |
c_sel(qu); |
177 |
c_facing("l"); |
178 |
c_speaker("queen"); |
179 |
c_msgsetloc(0, Face D* Arbitrarily Right NowWait for inputClose Message"\\ED* Arbitrarily Right Now/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_263_0" ); |
180 |
c_talk_wait(); |
181 |
c_sel(ki); |
182 |
c_sprite(spr_king_sulk); |
183 |
c_speaker("king"); |
184 |
c_msgsetloc(0, Face 5* ....Delay 11 hmph.Wait for input"\\E5* ...^1. hmph./", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_271_0" ); |
185 |
c_msgnextloc(Face 5* Do what you please with the boy.Wait for input"\\E5* Do what you please with the boy./", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_272_0" ); |
186 |
c_msgnextloc(Face 5* But if he cries...Wait for input"\\E5* But if he cries.../", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_273_0" ); |
187 |
c_msgnextloc(Face 8* ...Delay 11 Bounce him on the ground like a ball.Wait for inputClose Message"\\E8* ..^1. Bounce him on the ground like a ball./%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_274_0" ); |
188 |
c_talk_wait(); |
189 |
c_wait(30); |
190 |
c_sel(qu); |
191 |
c_facing("d"); |
192 |
c_speaker("queen"); |
193 |
c_msgsetloc(0, Face D* I Think It Is Time To Abort This ConversationWait for input"\\ED* I Think It Is Time To Abort This Conversation/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_285_0" ); |
194 |
c_facenext("king", "B"); |
195 |
c_msgnextloc(Face B* ...Delay 11 As you wish.Wait for inputClose Message"\\EB* ..^1. As you wish./%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_287_0" ); |
196 |
c_talk_wait(); |
197 |
c_sel(ro); |
198 |
c_walkdirect_wait(1118, ro_actor.y, 15); |
199 |
c_speaker("rouxls"); |
200 |
c_msgsetloc(0, Face 0* Oho,Delay 11 quite sorry,Delay 11 mine Kinge...Wait for input"\\E0* Oho^1, quite sorry^1, mine Kinge.../", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_295_0" ); |
201 |
c_msgnextloc(Face 3* Queene hath a nyew Man about Towne now!!Wait for inputClose Message"\\E3* Queene hath a nyew Man about Towne now!!/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_296_0" ); |
202 |
c_talk_wait(); |
203 |
c_wait(30); |
204 |
c_speaker("king"); |
205 |
c_msgsetloc(0, Face 5* Who?Wait for inputClose Message"\\E5* Who?/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_303_0" ); |
206 |
c_talk_wait(); |
207 |
c_sel(qu); |
208 |
c_autowalk(1); |
209 |
c_facing("l"); |
210 |
c_speaker("queen"); |
211 |
c_msgsetloc(0, Face I* Yeah WhoWait for inputClose Message"\\EI* Yeah Who/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_311_0" ); |
212 |
c_talk_wait(); |
213 |
c_wait(30); |
214 |
c_speaker("rouxls"); |
215 |
c_msgsetloc(0, Face 6* ErWait for inputClose Message"\\E6* Er/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_320_0" ); |
216 |
c_talk_wait(); |
217 |
c_sel(ro); |
218 |
c_walk_wait("l", 5, 5); |
219 |
c_speaker("rouxls"); |
220 |
c_msgsetloc(0, Face 1* I think IWait for inputClose Message"\\E1* I think I/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_327_0" ); |
221 |
c_talk_wait(); |
222 |
c_walk_wait("l", 5, 5); |
223 |
c_speaker("rouxls"); |
224 |
c_msgsetloc(0, Face 6* Left my puzzle onWait for inputClose Message"\\E6* Left my puzzle on/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_333_0" ); |
225 |
c_talk_wait(); |
226 |
c_walk("l", 15, 30); |
227 |
c_speaker("rouxls"); |
228 |
c_msgsetloc(0, Face 5* POSTHASTE!!!Wait for inputClose Message"\\E5* POSTHASTE!!!/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_341_0" ); |
229 |
c_talk_wait(); |
230 |
c_wait(30); |
231 |
c_sel(qu); |
232 |
c_facing("u"); |
233 |
c_speaker("queen"); |
234 |
c_msgsetloc(0, Face L* Who Was That??Wait for inputClose Message"\\EL* Who Was That??/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_352_0" ); |
235 |
c_talk_wait(); |
236 |
c_sel(ki); |
237 |
c_sprite(spr_king_sulk_left); |
238 |
c_speaker("king"); |
239 |
c_msgsetloc(0, Face 5* Sigh...Delay 11 That was my son's....Wait for inputClose Message"\\E5* Sigh..^1. That was my son's..../%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_360_0" ); |
240 |
c_talk_wait(); |
241 |
c_sel(ki); |
242 |
c_sprite(spr_king_sulk); |
243 |
c_speaker("king"); |
244 |
c_msgsetloc(0, Face C* LESSER father.Wait for inputClose Message"\\EC* LESSER father./%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_368_0" ); |
245 |
c_talk_wait(); |
246 |
c_sel(qu); |
247 |
c_autowalk(0); |
248 |
c_sprite(spr_cutscene_10_queen_ohoho_standing); |
249 |
c_imagespeed(0.25); |
250 |
c_speaker("queen"); |
251 |
c_msgsetloc(0, Face N* Cannot Calculate Someone Less Than YouWait for inputClose Message"\\EN* Cannot Calculate Someone Less Than You/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_378_0" ); |
252 |
c_talk_wait(); |
253 |
c_sel(ki); |
254 |
c_sprite(spr_king_sulk_drink_left); |
255 |
c_autowalk(0); |
256 |
c_imagespeed(0.25); |
257 |
c_shake(); |
258 |
c_speaker("king"); |
259 |
c_msgsetloc(0, Face A* BEGONE!!!!Wait for input"\\EA* BEGONE!!!!/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_390_0" ); |
260 |
c_facenext("queen", "0"); |
261 |
c_msgnextloc(Face 0* Bye Bye Kingy WingyWait for inputClose Message"\\E0* Bye Bye Kingy Wingy/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_392_0" ); |
262 |
c_talk_wait(); |
263 |
c_sel(ki); |
264 |
c_sprite(spr_king_sulk); |
265 |
c_sel(qu); |
266 |
c_autowalk(1); |
267 |
c_facing("d"); |
268 |
c_wait(30); |
269 |
c_sel(qu); |
270 |
c_autowalk(1); |
271 |
c_walk_wait("l", 8, 45); |
272 |
c_facing("r"); |
273 |
c_wait(30); |
274 |
c_speaker("queen"); |
275 |
c_msgsetloc(0, Face D* By The Way Did You Want Anything From The StoreWait for input"\\ED* By The Way Did You Want Anything From The Store/", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_413_0" ); |
276 |
c_facenext("king", "8"); |
277 |
c_msgnextloc(Face 8* ...Delay 11 cashews.Wait for input"\\E8* ..^1. cashews./", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_415_0" ); |
278 |
c_facenext("queen", 1); |
279 |
c_msgnextloc(Face 1* Order ProcessedWait for inputClose Message"\\E1* Order Processed/%", "obj_ch2_room_dungeon_2f_ee_slash_Step_0_gml_417_0" ); |
280 |
c_talk_wait(); |
281 |
c_sel(qu); |
282 |
c_walk_wait("l", 10, 10); |
283 |
c_pannable(1); |
284 |
c_panobj(kr_actor, 15); |
285 |
c_wait(15); |
286 |
c_pannable(0); |
287 |
c_actortokris(); |
288 |
c_actortocaterpillar(); |
289 |
c_terminatekillactors(); |
290 |
} |
291 |
if (con == 50 && !i_ex(obj_cutscene_master)) |
292 |
{ |
293 |
global.interact = 0; |
294 |
global.facing = 0; |
295 |
con = 0; |
296 |
global.flag[320 talked_queenie_beanie] = 1; |
297 |
with (obj_npc_king) |
298 |
visible = 1; |
299 |
instance_destroy(); |
300 |
} |
301 |
if (i_ex(ki_actor)) |
302 |
{ |
303 |
if (king_drink) |
304 |
{ |
305 |
with (ki_actor) |
306 |
{ |
307 |
if (x < 1380) |
308 |
{ |
309 |
if (hspeed < 3) |
310 |
hspeed = 3; |
311 |
hspeed += 1; |
312 |
if (y >= (ystart - 60)) |
313 |
y -= 4; |
314 |
} |
315 |
else |
316 |
{ |
317 |
hspeed = 0; |
318 |
} |
319 |
} |
320 |
} |
321 |
else |
322 |
{ |
323 |
var xpos = obj_npc_king.xstart; |
324 |
var ypos = obj_npc_king.ystart; |
325 |
with (ki_actor) |
326 |
{ |
327 |
if (x > xpos) |
328 |
{ |
329 |
if (y <= ypos) |
330 |
y = clamp(y + 4, 0, ypos); |
331 |
hspeed -= 1; |
332 |
} |
333 |
else |
334 |
{ |
335 |
hspeed = 0; |
336 |
x = xpos; |
337 |
} |
338 |
} |
339 |
} |
340 |
} |