1 |
if (con == 1 && obj_mainchara.x >= 1060 && global.interact == 0) |
2 |
{ |
3 |
global.flag[7 disable_menu?] = 1; |
4 |
with (obj_mainchara) |
5 |
cutscene = 1; |
6 |
global.interact = 1; |
7 |
scr_panscr_panfunction scr_pan(arg0, arg1, arg2)
{
panner = instance_create(0, 0, obj_panner);
panner.panmax = arg2;
panner.panx = arg0;
panner.pany = arg1;
} (4, 0, 20); |
8 |
con = 2; |
9 |
alarm[4] = 30; |
10 |
} |
11 |
if (con == 3) |
12 |
{ |
13 |
global.facing = 1; |
14 |
with (susie) |
15 |
sprite_index = spr_susiel_dark; |
16 |
global.msg[0] = stringsetloc(* Hey,Delay 11 Kris.Delay 11 * There's someone up there waving at us.Wait for input"* Hey^1, Kris^1.&* There's someone up there waving at us./", "obj_lancerchaseevent_slash_Step_0_gml_16_0" ); |
17 |
global.msg[1] = stringsetloc(* Any idea what they want...?Wait for inputClose Message"* Any idea what they want...?/%", "obj_lancerchaseevent_slash_Step_0_gml_17_0" ); |
18 |
global.typer = 30; |
19 |
global.fe = 0; |
20 |
global.fc = 1; |
21 |
con = 4; |
22 |
d = instance_create(0, 0, obj_dialoguer); |
23 |
with (d) |
24 |
side = 0; |
25 |
} |
26 |
if (con == 4 && instance_exists(obj_dialoguer) == false) |
27 |
{ |
28 |
lancer = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (1150, 370, spr_darklancer); |
29 |
global.facing = 2; |
30 |
with (susie) |
31 |
sprite_index = spr_susieu_dark; |
32 |
scr_panscr_panfunction scr_pan(arg0, arg1, arg2)
{
panner = instance_create(0, 0, obj_panner);
panner.panmax = arg2;
panner.panx = arg0;
panner.pany = arg1;
} (0, -8, 40); |
33 |
con = 5; |
34 |
alarm[4] = 40; |
35 |
} |
36 |
if (con == 6) |
37 |
{ |
38 |
con = 7; |
39 |
alarm[4] = 30; |
40 |
} |
41 |
if (con == 8) |
42 |
{ |
43 |
with (lancer) |
44 |
image_index = 1; |
45 |
snd_play(snd_break1); |
46 |
b[0] = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (lancer.x + 120, lancer.y - 20, spr_spadebullet); |
47 |
b[1] = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (lancer.x - 160, lancer.y - 20, spr_spadebullet); |
48 |
for (i = 0; i < 2; i += 1) |
49 |
{ |
50 |
b[i].image_alpha = 0; |
51 |
bdir[i] = point_direction(b[i].x, b[0].y, susie.x + 20, susie.y + 30); |
52 |
b[i].direction = bdir[i]; |
53 |
b[i].image_angle = bdir[i]; |
54 |
b[i].speed = -4; |
55 |
b[i].friction = 0.12; |
56 |
} |
57 |
con = 9; |
58 |
alarm[4] = 40; |
59 |
} |
60 |
if (con == 9) |
61 |
{ |
62 |
with (b[0]) |
63 |
image_alpha += 0.04; |
64 |
with (b[1]) |
65 |
image_alpha += 0.04; |
66 |
} |
67 |
if (con == 10) |
68 |
{ |
69 |
with (lancer) |
70 |
image_index = 0; |
71 |
snd_play(snd_bigcut); |
72 |
aftercon = 1; |
73 |
with (b[0]) |
74 |
speed = 22; |
75 |
with (b[1]) |
76 |
speed = 22; |
77 |
with (b[0]) |
78 |
friction = -1; |
79 |
with (b[1]) |
80 |
friction = -1; |
81 |
scr_panscr_panfunction scr_pan(arg0, arg1, arg2)
{
panner = instance_create(0, 0, obj_panner);
panner.panmax = arg2;
panner.panx = arg0;
panner.pany = arg1;
} (0, 31, 10); |
82 |
con = 11; |
83 |
alarm[4] = 10; |
84 |
} |
85 |
if (aftercon == 1) |
86 |
{ |
87 |
with (b[0]) |
88 |
{ |
89 |
a = scr_afterimagescr_afterimagefunction scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} (); |
90 |
a.image_alpha = 0.6; |
91 |
} |
92 |
with (b[1]) |
93 |
{ |
94 |
a = scr_afterimagescr_afterimagefunction scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} (); |
95 |
a.image_alpha = 0.6; |
96 |
} |
97 |
} |
98 |
if (con == 11) |
99 |
{ |
100 |
if (__view_get(e__VW.YView, 0) >= (room_height - 480)) |
101 |
__view_set(e__VW.YView, 0, room_height - 480); |
102 |
} |
103 |
if (con == 12) |
104 |
{ |
105 |
with (susie) |
106 |
{ |
107 |
hspeed = 16; |
108 |
sprite_index = spr_susie_shock; |
109 |
} |
110 |
con = 13; |
111 |
alarm[4] = 5; |
112 |
} |
113 |
if (con == 14) |
114 |
{ |
115 |
with (susie) |
116 |
hspeed = 0; |
117 |
con = 14.1; |
118 |
alarm[4] = 30; |
119 |
} |
120 |
if (con == 15.1) |
121 |
{ |
122 |
with (susie) |
123 |
sprite_index = spr_susiel_dark_unhappy; |
124 |
scr_pan_to_objscr_pan_to_objfunction scr_pan_to_obj(arg0, arg1)
{
_panx = arg0.x - floor((__view_get(e__VW.WView, 0) / 2) - (arg0.sprite_width / 2));
_pany = arg0.y - floor((__view_get(e__VW.HView, 0) / 2) - (arg0.sprite_height / 2));
if (_panx < 0)
_panx = 0;
if (_panx >= (room_width - __view_get(e__VW.WView, 0)))
_panx = room_width - __view_get(e__VW.WView, 0);
if (_pany < 0)
_pany = 0;
if (_pany >= (room_height - __view_get(e__VW.HView, 0)))
_pany = room_height - __view_get(e__VW.HView, 0);
scr_pan_lerp(_panx, _pany, arg1);
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (obj_mainchara, 5); |
125 |
con = 14.2; |
126 |
alarm[4] = 4; |
127 |
} |
128 |
if (con == 15.2) |
129 |
{ |
130 |
with (obj_panner) |
131 |
instance_destroy(); |
132 |
with (obj_mainchara) |
133 |
cutscene = 0; |
134 |
con = 15; |
135 |
alarm[4] = 10; |
136 |
} |
137 |
if (con == 16) |
138 |
{ |
139 |
aftercon = 0; |
140 |
global.fe = 9; |
141 |
global.msg[0] = stringsetloc(* R-run,Delay 11 Kris!Wait for inputClose Message"* R-run^1, Kris!/%", "obj_lancerchaseevent_slash_Step_0_gml_137_0" ); |
142 |
instance_create(0, 0, obj_dialoguer); |
143 |
con = 17; |
144 |
} |
145 |
if (con == 17 && instance_exists(obj_dialoguer) == false) |
146 |
{ |
147 |
with (susie) |
148 |
{ |
149 |
sprite_index = spr_susier_dark_unhappy; |
150 |
image_speed = 0.334; |
151 |
hspeed = 14; |
152 |
} |
153 |
global.interact = 0; |
154 |
con = 18; |
155 |
with (obj_mainchara) |
156 |
{ |
157 |
cutscene = 0; |
158 |
autorun = 1; |
159 |
} |
160 |
global.currentsong[0] = snd_init("creepychase.ogg"); |
161 |
global.currentsong[1] = mus_loop(global.currentsong[0]); |
162 |
instance_create(0, 0, obj_overworld_spademaker); |
163 |
} |
164 |
if (con == 19) |
165 |
con = 20; |
166 |
|
167 |
enum e__VW |
168 |
{ |
169 |
XView, |
170 |
YView, |
171 |
WView, |
172 |
HView, |
173 |
Angle, |
174 |
HBorder, |
175 |
VBorder, |
176 |
HSpeed, |
177 |
VSpeed, |
178 |
Object, |
179 |
Visible, |
180 |
XPort, |
181 |
YPort, |
182 |
WPort, |
183 |
HPort, |
184 |
Camera, |
185 |
SurfaceID |
186 |
} |