1 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0); |
2 |
scr_npc_animscr_npc_animtt = 0;
if (myinteract == 3)
{
if (instance_exists(OBJ_WRITER))
{
image_speed = 0.2;
if (OBJ_WRITER.halt != 0)
tt = 1;
}
else
{
tt = 1;
}
}
if (tt == 1)
{
image_speed = 0;
image_index = 0;
} (); |
3 |
script_execute(scr_npcdir, 2); |
4 |
image_alpha = 0; |
5 |
if (instance_exists(obj_mainchara)) |
6 |
{ |
7 |
dist = distance_to_object(obj_mainchara); |
8 |
if (dist < 60) |
9 |
{ |
10 |
disto = 5 / (dist + 2); |
11 |
if (disto > 1) |
12 |
disto = 1; |
13 |
image_alpha = disto; |
14 |
} |
15 |
} |