1 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0); |
2 |
if (carry == 1 && instance_exists(OBJ_WRITER) == 0) |
3 |
{ |
4 |
if (global.flag[7 true_pacifist] == 0) |
5 |
scr_musfadepausescr_musfadepauseg = instance_create(0, 0, obj_musfadepause);
if (argument0 == 0)
argument0 = 0.05;
g.fadespeed = argument0; (0.05); |
6 |
global.interact = 1; |
7 |
alarm[4] = 20; |
8 |
carry = 2; |
9 |
global.phasing = 1; |
10 |
} |
11 |
if (carry == 2) |
12 |
global.interact = 1; |
13 |
if (carry == 3) |
14 |
{ |
15 |
voli = 0; |
16 |
if (global.flag[7 true_pacifist] == 0) |
17 |
caster_loop(birdsong, 0.2, 1.1); |
18 |
sprite_index = spr_smallbird_fly; |
19 |
image_speed = 0.25; |
20 |
hdist = obj_mainchara.x - x; |
21 |
vdist = obj_mainchara.y - 10 - y; |
22 |
hspeed = hdist / 30; |
23 |
vspeed = vdist / 30; |
24 |
alarm[4] = 30; |
25 |
carry = 4; |
26 |
} |
27 |
if (carry == 4) |
28 |
{ |
29 |
voli += 0.02; |
30 |
if (global.flag[7 true_pacifist] == 0) |
31 |
caster_set_volume(birdsong, voli); |
32 |
} |
33 |
if (carry == 5) |
34 |
{ |
35 |
x = obj_mainchara.x; |
36 |
y = obj_mainchara.y - 10; |
37 |
vspeed = 0; |
38 |
hspeed = 0; |
39 |
sinoid = 0; |
40 |
carry = 6; |
41 |
alarm[4] = 25; |
42 |
} |
43 |
if (carry == 7) |
44 |
{ |
45 |
vspeed = -0.5; |
46 |
carry = 8; |
47 |
alarm[4] = 10; |
48 |
} |
49 |
if (carry == 9) |
50 |
{ |
51 |
clamp_r = 1; |
52 |
alarm[4] = 100; |
53 |
carry = 10; |
54 |
sinoid = 2; |
55 |
} |
56 |
if (carry == 11) |
57 |
{ |
58 |
vspeed = 0; |
59 |
hspeed = -0.4; |
60 |
if (right == 1) |
61 |
hspeed = 0.4; |
62 |
carry = 12; |
63 |
alarm[4] = 360; |
64 |
} |
65 |
if (right == 0) |
66 |
{ |
67 |
if (carry == 12 && x > 100 && alarm[4] < 5) |
68 |
alarm[4] += 1; |
69 |
} |
70 |
if (right == 1) |
71 |
{ |
72 |
if (carry == 12 && x < 240 && alarm[4] < 5) |
73 |
alarm[4] += 1; |
74 |
} |
75 |
if (carry == 13) |
76 |
{ |
77 |
vspeed = 0.5; |
78 |
hspeed = 0; |
79 |
alarm[4] = 100; |
80 |
carry = 14; |
81 |
} |
82 |
if (carry == 14 && y < 90 && alarm[4] < 5) |
83 |
alarm[4] += 1; |
84 |
if (carry == 14 && y > 90 && alarm[4] > 5) |
85 |
alarm[4] -= 1; |
86 |
if (carry == 14) |
87 |
{ |
88 |
if (voli > 0) |
89 |
voli -= 0.008; |
90 |
if (global.flag[7 true_pacifist] == 0) |
91 |
caster_set_volume(birdsong, voli); |
92 |
} |
93 |
if (carry == 15) |
94 |
{ |
95 |
if (global.flag[7 true_pacifist] == 0) |
96 |
caster_stop(birdsong); |
97 |
sinoid = 0; |
98 |
clamp_r = 0; |
99 |
carry = 16; |
100 |
alarm[4] = 20; |
101 |
} |
102 |
if (carry == 17) |
103 |
{ |
104 |
vspeed = 0; |
105 |
hspeed = 1; |
106 |
if (right == 1) |
107 |
hspeed = -1; |
108 |
alarm[4] = 30; |
109 |
carry = 18; |
110 |
scr_musfaderesumescr_musfaderesumeif (instance_exists(obj_musfadepause))
{
obj_musfadepause.resume = 1;
if (argument0 == 0)
argument0 = 0.05;
obj_musfadepause.fadespeed = argument0;
} (0.05); |
111 |
} |
112 |
if (carry == 19) |
113 |
{ |
114 |
hspeed = 0; |
115 |
vspeed = 1; |
116 |
alarm[4] = 10; |
117 |
carry = 20; |
118 |
} |
119 |
if (carry == 21) |
120 |
{ |
121 |
with (obj_mainchara) |
122 |
uncan = 0; |
123 |
vspeed = 0; |
124 |
x = round(x); |
125 |
y = round(y); |
126 |
sprite_index = spr_smallbird; |
127 |
image_speed = 0.25; |
128 |
carry = 0; |
129 |
if (right == 0) |
130 |
right = 1; |
131 |
else |
132 |
right = 0; |
133 |
global.phasing = 0; |
134 |
global.interact = 0; |
135 |
} |
136 |
if (sinoid == 1) |
137 |
{ |
138 |
x += (sin(x) / 2); |
139 |
y += (cos(y) / 2); |
140 |
} |
141 |
if (sinoid == 2) |
142 |
{ |
143 |
x += (random(1) - 0.5); |
144 |
y += (random(1) - 0.5); |
145 |
} |
146 |
if (clamp_r == 1) |
147 |
{ |
148 |
obj_mainchara.x = round(x); |
149 |
obj_mainchara.y = round(y + 15); |
150 |
} |