|
1
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
2
|
var makeme = global.flag[1243 zapper_jail_2];
|
|
3
|
chainact = 0;
|
|
4
|
con = 0;
|
|
5
|
if (makeme)
|
|
6
|
{
|
|
7
|
if (obj_mainchara.x == 80)
|
|
8
|
{
|
|
9
|
global.facing = 0;
|
|
10
|
obj_mainchara.x = 108;
|
|
11
|
with (obj_caterpillarchara)
|
|
12
|
{
|
|
13
|
if (name == "susie")
|
|
14
|
x -= 4;
|
|
15
|
if (name == "ralsei")
|
|
16
|
x -= 34;
|
|
17
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
18
|
facing[target] = 0;
|
|
19
|
}
|
|
20
|
}
|
|
21
|
scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (x, y, sprite_index, 2, 2, 0, 1, c_white, 1000040);
|
|
22
|
with (scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (x, y, sprite_index, 2, 2, 0, 0, c_white, 1000040))
|
|
23
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
24
|
chain = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (x + 110, y + 86, spr_dw_teevie_zapperbchain, 2, 2, 0, 0);
|
|
25
|
chain.depth = depth - 1;
|
|
26
|
chain.image_speed = 0;
|
|
27
|
if (global.flag[1243 zapper_jail_2] < 2)
|
|
28
|
{
|
|
29
|
chainblock = instance_create(150, 280, obj_solidblocksized);
|
|
30
|
chainact = instance_create(153, 283, obj_trigger_interact);
|
|
31
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (2.5, 1, chainact);
|
|
32
|
}
|
|
33
|
else
|
|
34
|
{
|
|
35
|
chain.image_index = 1;
|
|
36
|
con = 99;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
else
|
|
40
|
{
|
|
41
|
if (obj_mainchara.x == 80)
|
|
42
|
{
|
|
43
|
with (obj_mainchara)
|
|
44
|
setxy(56, 288);
|
|
45
|
with (obj_caterpillarchara)
|
|
46
|
{
|
|
47
|
setxy(56, 258);
|
|
48
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
49
|
}
|
|
50
|
}
|
|
51
|
with (instance_create(x, y, obj_solidblock))
|
|
52
|
{
|
|
53
|
sprite_index = other.sprite_index;
|
|
54
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} ();
|
|
55
|
image_index = 0;
|
|
56
|
image_speed = 0;
|
|
57
|
}
|
|
58
|
}
|