|
1
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0);
|
|
2
|
if (obj_mainchara.y > (y + 80))
|
|
3
|
{
|
|
4
|
if (t == 0)
|
|
5
|
{
|
|
6
|
alarm[5] = 30; gml_Object_obj_toroverworld2_Alarm_5.gml
if (obj_mainchara.y > (y + 80))
{
path_speed = 0;
direction = 270;
image_speed = 0;
image_index = 0;
t = 0;
}
|
|
7
|
t = 1;
|
|
8
|
}
|
|
9
|
}
|
|
10
|
else
|
|
11
|
{
|
|
12
|
alarm[5] = 24; gml_Object_obj_toroverworld2_Alarm_5.gml
if (obj_mainchara.y > (y + 80))
{
path_speed = 0;
direction = 270;
image_speed = 0;
image_index = 0;
t = 0;
}
|
|
13
|
path_speed = 2;
|
|
14
|
if (obj_mainchara.y < (y + 65))
|
|
15
|
path_speed = 3;
|
|
16
|
if (obj_mainchara.y < (y + 50))
|
|
17
|
path_speed = 4;
|
|
18
|
image_speed = 0.2;
|
|
19
|
}
|
|
20
|
scr_npcdirscr_npcdir
if (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);
|