1 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0); |
2 |
if (instance_exists(obj_dialoguer) == 0 && conversation == 1) |
3 |
{ |
4 |
global.interact = 0; |
5 |
conversation = 2; |
6 |
myinteract = 0; |
7 |
path_start(path_walkright, 4, path_action_continue, 0); |
8 |
instance_create(7, 0, obj_plotwall3); |
9 |
image_speed = 0.3; |
10 |
global.plot = 8.5; |
11 |
global.currentsong = caster_load("music/tension.ogg"); |
12 |
caster_loop(global.currentsong, 1, 1); |
13 |
} |
14 |
scr_npcdirscr_npcdirif (myinteract == 0)
{
if (direction >= 225 && direction < 315)
{
facing = 0;
sprite_index = dsprite;
}
if (direction >= 315 || direction < 45)
{
facing = 1;
sprite_index = rsprite;
}
if (direction >= 45 && direction < 135)
{
facing = 2;
sprite_index = usprite;
}
if (direction >= 135 && direction < 225)
{
facing = 3;
sprite_index = lsprite;
}
}
if (myinteract == (1 + argument0))
{
if (facing == 0)
sprite_index = dtsprite;
if (facing == 1)
sprite_index = rtsprite;
if (facing == 2)
sprite_index = utsprite;
if (facing == 3)
sprite_index = ltsprite;
} (0); |