| 1 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0); |
| 2 |
if (fun == 0) |
| 3 |
{ |
| 4 |
if (instance_exists(obj_face_papyrus)) |
| 5 |
image_index = obj_face_papyrus.image_index; |
| 6 |
else if (speed == 0 && path_speed == 0) |
| 7 |
image_index = 0; |
| 8 |
} |
| 9 |
if (speed == 0) |
| 10 |
scr_npc_watchscr_npc_watchif (argument0 == 0)
{
if (instance_exists(obj_mainchara))
{
xdist = (obj_mainchara.x + (obj_mainchara.sprite_width / 2)) - (x + (sprite_width / 2));
ydist = obj_mainchara.bbox_top - bbox_top;
if (abs(xdist) >= abs(ydist))
{
if (xdist >= 0)
sprite_index = rtsprite;
else
sprite_index = ltsprite;
}
else if (ydist >= 0)
{
sprite_index = dtsprite;
}
else
{
sprite_index = utsprite;
}
}
}
if (argument0 == 1)
{
if (instance_exists(obj_mainchara))
{
xdist = (obj_mainchara.x + (obj_mainchara.sprite_width / 2)) - (x + (sprite_width / 2));
ydist = obj_mainchara.bbox_top - bbox_top;
if (abs(xdist) >= abs(ydist))
{
if (xdist >= 0)
sprite_index = rsprite;
else
sprite_index = lsprite;
}
else if (ydist >= 0)
{
sprite_index = dsprite;
}
else
{
sprite_index = usprite;
}
}
} (0); |
| 11 |
if (instance_exists(obj_kitchenchecker)) |
| 12 |
{ |
| 13 |
if (spot > 0 && obj_kitchenchecker.level == 0 && global.interact == 0) |
| 14 |
{ |
| 15 |
if (spot == 2) |
| 16 |
{ |
| 17 |
myscore += 1; |
| 18 |
if (myscore > 3) |
| 19 |
{ |
| 20 |
snd_play(snd_bell); |
| 21 |
hspeed *= 1.1; |
| 22 |
} |
| 23 |
} |
| 24 |
spot = 1; |
| 25 |
} |
| 26 |
} |
| 27 |
if (spot == 1) |
| 28 |
{ |
| 29 |
solid = 0; |
| 30 |
if (hspeed == 0) |
| 31 |
hspeed = 5; |
| 32 |
if (hspeed < 0) |
| 33 |
hspeed = -hspeed; |
| 34 |
image_speed = 0.5; |
| 35 |
sprite_index = spr_papyrus_r; |
| 36 |
if (x > 183) |
| 37 |
{ |
| 38 |
x = ceil(x); |
| 39 |
hspeed = 0; |
| 40 |
spot = 0; |
| 41 |
sprite_index = spr_papyrus_ut; |
| 42 |
solid = 1; |
| 43 |
if (myscore > 10) |
| 44 |
snd_play(snd_levelup); |
| 45 |
myscore = 0; |
| 46 |
} |
| 47 |
} |
| 48 |
if (instance_exists(obj_kitchenchecker)) |
| 49 |
{ |
| 50 |
if (spot < 2 && obj_kitchenchecker.level == 1 && global.interact == 0) |
| 51 |
{ |
| 52 |
if (spot == 1) |
| 53 |
{ |
| 54 |
myscore += 1; |
| 55 |
if (myscore > 3) |
| 56 |
{ |
| 57 |
snd_play(snd_bell); |
| 58 |
hspeed *= 1.1; |
| 59 |
} |
| 60 |
} |
| 61 |
spot = 2; |
| 62 |
} |
| 63 |
} |
| 64 |
if (spot == 2) |
| 65 |
{ |
| 66 |
solid = 0; |
| 67 |
if (hspeed == 0) |
| 68 |
hspeed = -5; |
| 69 |
if (hspeed > 0) |
| 70 |
hspeed = -hspeed; |
| 71 |
image_speed = 0.5; |
| 72 |
sprite_index = spr_papyrus_l; |
| 73 |
if (x < 27) |
| 74 |
{ |
| 75 |
x = floor(x); |
| 76 |
hspeed = 0; |
| 77 |
spot = 3; |
| 78 |
sprite_index = spr_papyrus_rt; |
| 79 |
solid = 1; |
| 80 |
if (myscore > 10) |
| 81 |
snd_play(snd_levelup); |
| 82 |
myscore = 0; |
| 83 |
} |
| 84 |
} |
| 85 |
if (spot == 5 && y >= ystart) |
| 86 |
{ |
| 87 |
y = ystart; |
| 88 |
vspeed = 0; |
| 89 |
spot = 3; |
| 90 |
sprite_index = spr_papyrus_rt; |
| 91 |
} |
| 92 |
if (myscore > 3 && workout == 0) |
| 93 |
workout = 1; |
| 94 |
if (myscore > 10 && workout == 1) |
| 95 |
workout = 2; |