|
1
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0);
|
|
2
|
if (global.interact < 1)
|
|
3
|
{
|
|
4
|
if (halt == 1)
|
|
5
|
{
|
|
6
|
speed = memoryspeed;
|
|
7
|
image_speed = memoryispeed;
|
|
8
|
}
|
|
9
|
movementalarm[0] -= 1;
|
|
10
|
movementalarm[1] -= 1;
|
|
11
|
if (movementalarm[0] == 0)
|
|
12
|
{
|
|
13
|
i = round(random(3));
|
|
14
|
direction = i * 90;
|
|
15
|
speed = 2;
|
|
16
|
stopped = 0;
|
|
17
|
image_index = 1;
|
|
18
|
image_speed = 0.2;
|
|
19
|
movementalarm[1] = 10 + round(random(10));
|
|
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);
|
|
21
|
}
|
|
22
|
if (movementalarm[1] == 0)
|
|
23
|
{
|
|
24
|
image_speed = 0;
|
|
25
|
image_index = 0;
|
|
26
|
speed = 0;
|
|
27
|
halt = 0;
|
|
28
|
stopped = 1;
|
|
29
|
movementalarm[0] = 30 + round(random(20));
|
|
30
|
}
|
|
31
|
}
|
|
32
|
else if (stopped == 0)
|
|
33
|
{
|
|
34
|
memoryispeed = image_speed;
|
|
35
|
memoryspeed = speed;
|
|
36
|
if (myinteract == 0)
|
|
37
|
image_speed = 0;
|
|
38
|
speed = 0;
|
|
39
|
stopped = 1;
|
|
40
|
halt = 1;
|
|
41
|
}
|
|
42
|
if (myinteract == 1)
|
|
43
|
{
|
|
44
|
global.interact = 1;
|
|
45
|
image_speed = 0.2;
|
|
46
|
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);
|
|
47
|
alarm[0] = 1; gml_Object_obj_wanderparent_Alarm_0.gml
myinteract = 3;
global.msc = 9999;
global.typer = 4;
global.facechoice = 1;
global.faceemotion = 0;
mydialoguer = instance_create(0, 0, obj_dialoguer);
|
|
48
|
myinteract = 2;
|
|
49
|
}
|
|
50
|
if (myinteract == 3)
|
|
51
|
{
|
|
52
|
if (instance_exists(mydialoguer) == 0)
|
|
53
|
{
|
|
54
|
global.interact = 0;
|
|
55
|
myinteract = 0;
|
|
56
|
image_speed = memoryispeed;
|
|
57
|
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);
|
|
58
|
}
|
|
59
|
}
|