1 |
if (instance_exists(OBJ_WRITER)) |
2 |
{ |
3 |
if (OBJ_WRITER.halt == 0) |
4 |
{ |
5 |
face_speed = 0.25; |
6 |
} |
7 |
else |
8 |
{ |
9 |
face_index = 0; |
10 |
face_speed = 0; |
11 |
} |
12 |
} |
13 |
else |
14 |
{ |
15 |
face_index = 0; |
16 |
face_speed = 0; |
17 |
} |
18 |
if (global.faceemotion == 8) |
19 |
face_speed = 0.13; |
20 |
draw_set_color(c_white); |
21 |
if (choicer == 1) |
22 |
{ |
23 |
if (choice == 0) |
24 |
draw_sprite(spr_heart, 0, global.idealborder[0] + 40, global.idealborder[2] + 60); |
25 |
if (choice == 1) |
26 |
draw_sprite(spr_heart, 0, global.idealborder[0] + 300, global.idealborder[2] + 60); |
27 |
if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) |
28 |
{ |
29 |
if (choice == 0) |
30 |
choice = 1; |
31 |
else |
32 |
choice = 0; |
33 |
snd_play(snd_squeak); |
34 |
} |
35 |
if (control_check_pressed(0)) |
36 |
choicer = 2; |
37 |
} |
38 |
if (fadeouter == 1) |
39 |
{ |
40 |
if (fadeamt < 1) |
41 |
fadeamt += 0.04; |
42 |
draw_set_color(c_black); |
43 |
draw_set_alpha(fadeamt); |
44 |
ossafe_fill_rectangle(-10, -10, 999, 999); |
45 |
draw_set_alpha(1); |
46 |
} |
47 |
if (fadeouter == 2) |
48 |
{ |
49 |
if (fadeamt > 0) |
50 |
fadeamt -= 0.04; |
51 |
else |
52 |
fadeouter = 0; |
53 |
draw_set_color(c_black); |
54 |
draw_set_alpha(fadeamt); |
55 |
ossafe_fill_rectangle(-10, -10, 999, 999); |
56 |
draw_set_alpha(1); |
57 |
} |