| 1 |
if (phone != 2) |
| 2 |
{ |
| 3 |
if (instance_exists(obj_torface)) |
| 4 |
{ |
| 5 |
myinteract = 1; |
| 6 |
if (instance_exists(obj_face_torieltalk)) |
| 7 |
image_index = obj_face_torieltalk.image_index; |
| 8 |
else |
| 9 |
image_index = 0; |
| 10 |
} |
| 11 |
else |
| 12 |
{ |
| 13 |
myinteract = 0; |
| 14 |
if (path_position == 1) |
| 15 |
{ |
| 16 |
image_index = 0; |
| 17 |
image_speed = 0; |
| 18 |
} |
| 19 |
else if (path_speed != 0) |
| 20 |
{ |
| 21 |
image_speed = 0.2; |
| 22 |
} |
| 23 |
if (speed > 0) |
| 24 |
image_speed = 0.2; |
| 25 |
} |
| 26 |
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); |
| 27 |
if (phone == 1) |
| 28 |
sprite_index = spr_toriel_d_phone; |
| 29 |
} |
| 30 |
if (sprite_index == spr_toriel_hug && image_index >= 2) |
| 31 |
{ |
| 32 |
image_speed = 0; |
| 33 |
sprite_index = spr_toriel_hug2; |
| 34 |
dsprite = spr_toriel_hug2; |
| 35 |
} |