1 |
if (init == 0) |
2 |
{ |
3 |
with (tasque) |
4 |
path_start(path_tasquePaintings_tasque, 200, path_action_continue, 1); |
5 |
with (swatch) |
6 |
path_start(path_tasquePaintings_swatchling, 200, path_action_continue, 1); |
7 |
init = 1; |
8 |
} |
9 |
if (i_ex(tasque) && i_ex(swatch)) |
10 |
{ |
11 |
if (global.interact == 0) |
12 |
{ |
13 |
pathProg += 0.6; |
14 |
timer++; |
15 |
} |
16 |
if (pathProg > 100) |
17 |
pathProg -= 100; |
18 |
pathProg2 = pathProg + 50; |
19 |
if (pathProg2 > 100) |
20 |
pathProg2 -= 100; |
21 |
tasque.path_position = pathProg / 100; |
22 |
swatch.path_position = pathProg2 / 100; |
23 |
with (swatch) |
24 |
{ |
25 |
if (direction == 90 || direction == 180) |
26 |
facing = 0; |
27 |
if (direction == 270 || direction == 0) |
28 |
facing = 1; |
29 |
} |
30 |
with (tasque) |
31 |
{ |
32 |
if (direction == 90 || direction == 180) |
33 |
sprite_index = spr_tasque_idle; |
34 |
if (direction == 270 || direction == 0) |
35 |
sprite_index = spr_tasque_idle_flipped; |
36 |
} |
37 |
if ((timer % 8) == 0) |
38 |
{ |
39 |
with (tasque) |
40 |
{ |
41 |
if (direction == 270) |
42 |
{ |
43 |
printx = 360 + (random(10) * choose(-1, 1)); |
44 |
printy = (y + sprite_height) - 8; |
45 |
} |
46 |
if (direction == 90) |
47 |
{ |
48 |
printx = 720 + (random(10) * choose(-1, 1)); |
49 |
printy = (y + sprite_height) - 8; |
50 |
} |
51 |
if (direction == 180) |
52 |
{ |
53 |
printx = x + (sprite_width / 2); |
54 |
printy = 480 + ((10 + random(10)) * choose(-1, 1)); |
55 |
} |
56 |
if (direction == 0) |
57 |
{ |
58 |
printx = x + (sprite_width / 2); |
59 |
printy = 840 + ((10 + random(10)) * choose(-1, 1)); |
60 |
} |
61 |
if (direction == 180 || direction == 90 || direction == 270 || direction == 0) |
62 |
{ |
63 |
pawprint = instance_create(printx, printy, obj_tasquePawPrint); |
64 |
pawprint.image_angle = direction - 90; |
65 |
pawprint.depth = 800000; |
66 |
scr_darksize(pawprint); |
67 |
} |
68 |
} |
69 |
} |
70 |
} |