|
1
|
walkaway = false;
|
|
2
|
finished_walking = scr_flag_getscr_flag_get
function scr_flag_get(arg0)
{
var flag_value = global.flag[arg0];
return flag_value;
} (1021) == 1;
|
|
3
|
sparkle = -4;
|
|
4
|
if (!finished_walking)
|
|
5
|
{
|
|
6
|
couch_marker = 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;
} (x, y, spr_dw_couch_walk);
|
|
7
|
with (couch_marker)
|
|
8
|
{
|
|
9
|
sprite_index = spr_dw_couch;
|
|
10
|
depth = 100000;
|
|
11
|
}
|
|
12
|
couch_readable = instance_create(x + 20, (y + (sprite_get_height(spr_dw_couch_walk) * 2)) - 40, obj_readable_room1);
|
|
13
|
with (couch_readable)
|
|
14
|
image_xscale = 14;
|
|
15
|
couch_collider = instance_create(x, (y + (sprite_get_height(spr_dw_couch_walk) * 2)) - 60, obj_solidblock);
|
|
16
|
with (couch_collider)
|
|
17
|
{
|
|
18
|
image_yscale = 2;
|
|
19
|
image_xscale = 16;
|
|
20
|
}
|
|
21
|
}
|
|
22
|
|
|
23
|
show_sparkle = function()
|
|
24
|
{
|
|
25
|
sparkle = 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;
} (x + 156, y + 150, spr_shine_white);
|
|
26
|
with (sparkle)
|
|
27
|
{
|
|
28
|
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));
}
} ();
|
|
29
|
image_speed = 0.08;
|
|
30
|
}
|
|
31
|
};
|
|
32
|
|
|
33
|
hide_sparkle = function()
|
|
34
|
{
|
|
35
|
with (sparkle)
|
|
36
|
instance_destroy();
|
|
37
|
};
|