|
1
|
con = 0;
|
|
2
|
var xoff = 80;
|
|
3
|
sam = instance_create(((xoff + 80 + 60) - 60 - 20) + 80, 206, obj_npc_room);
|
|
4
|
sam.extflag = "SuilverSam";
|
|
5
|
sam.sprite_index = spr_npc_gouldensamFaceOnly;
|
|
6
|
samlong = scr_dark_markerscr_dark_marker
function 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;
} (sam.x, sam.y - 56, spr_npc_gouldensamLong_silver);
|
|
7
|
samlong.depth = 97200;
|
|
8
|
sam.depth = samlong.depth - 1;
|
|
9
|
block = instance_create(sam.x + 24, sam.y + 68, obj_solidblocksized);
|
|
10
|
with (block)
|
|
11
|
{
|
|
12
|
image_yscale = 0.5;
|
|
13
|
image_xscale = 8;
|
|
14
|
}
|
|
15
|
with (scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (sam.x + 50, 170, spr_pxwhite))
|
|
16
|
{
|
|
17
|
image_blend = c_black;
|
|
18
|
image_xscale = 280;
|
|
19
|
image_yscale = 100;
|
|
20
|
image_alpha = 0.45;
|
|
21
|
depth = 1000049;
|
|
22
|
}
|
|
23
|
pip = instance_create(xoff + 132 + 80, 182, obj_npc_room);
|
|
24
|
pip.extflag = "Pippins";
|
|
25
|
pip.sprite_index = spr_npc_pippins;
|
|
26
|
with (pip)
|
|
27
|
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));
}
} ();
|
|
28
|
zapper = instance_create(xoff + 506 + 80, 244, obj_npc_room);
|
|
29
|
zapper.extflag = "Zapper";
|
|
30
|
zapper.sprite_index = spr_npc_zapper;
|
|
31
|
with (zapper)
|
|
32
|
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));
}
} ();
|
|
33
|
if (obj_mainchara.x == (346 + xoff))
|
|
34
|
{
|
|
35
|
global.facing = 0;
|
|
36
|
with (obj_caterpillarchara)
|
|
37
|
{
|
|
38
|
if (name == "susie")
|
|
39
|
x -= 50;
|
|
40
|
if (name == "ralsei")
|
|
41
|
x += 50;
|
|
42
|
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;
}
} ();
|
|
43
|
}
|
|
44
|
}
|