1 |
if (attack == 1) |
2 |
{ |
3 |
counter += 1; |
4 |
if (counter == 10) |
5 |
{ |
6 |
instance_create(obj_floweyx_flipeye.x, obj_floweyx_flipeye.y, obj_eyewarning); |
7 |
instance_create(obj_floweyx_flipeye.x + obj_floweyx_flipeye.op, obj_floweyx_flipeye.y, obj_eyewarning); |
8 |
} |
9 |
if (counter == 20) |
10 |
{ |
11 |
with (obj_floweyx_flipeye) |
12 |
event_user(1); |
13 |
} |
14 |
if (counter >= 22) |
15 |
counter = 16; |
16 |
} |
17 |
if (attack == 2) |
18 |
{ |
19 |
counter += 1; |
20 |
if (counter == 14) |
21 |
{ |
22 |
with (obj_floweyx_lefteye) |
23 |
event_user(1); |
24 |
} |
25 |
if (counter >= 16) |
26 |
counter = 13; |
27 |
} |
28 |
if (attack == 3) |
29 |
{ |
30 |
counter += 1; |
31 |
counter2 += 1; |
32 |
if (counter > 20) |
33 |
instance_create(110 + random(400), 200, obj_gigavine_preview); |
34 |
if (counter > 40) |
35 |
counter = 0; |
36 |
if (counter2 == 90) |
37 |
{ |
38 |
with (obj_floweyx_mouth) |
39 |
event_user(1); |
40 |
counter2 = -999; |
41 |
} |
42 |
} |
43 |
if (attack == 4) |
44 |
{ |
45 |
counter += 1; |
46 |
counter2 += 1; |
47 |
if (counter2 < 90) |
48 |
{ |
49 |
if (counter == 8) |
50 |
instance_create(0, 0, obj_spinbullet_huge_gen_preview); |
51 |
} |
52 |
if (counter >= 16) |
53 |
counter = -5; |
54 |
} |
55 |
if (attack == 5) |
56 |
{ |
57 |
counter += 1; |
58 |
counter2 += 1; |
59 |
if (counter2 < 100) |
60 |
{ |
61 |
if (counter == 10) |
62 |
{ |
63 |
instance_create(100 + random(420), -100, obj_floweynuke); |
64 |
instance_create(100 + random(420), -100, obj_floweynuke); |
65 |
} |
66 |
if (counter == 12) |
67 |
{ |
68 |
var gn = instance_create(-20 + random(130), -100, obj_floweynuke); |
69 |
gn.vspeed = 16; |
70 |
} |
71 |
if (counter == 14) |
72 |
instance_create((room_width + 20) - random(130), -100, obj_floweynuke); |
73 |
if (counter >= 18) |
74 |
counter = 9; |
75 |
} |
76 |
} |
77 |
if (attack == 6) |
78 |
{ |
79 |
counter += 1; |
80 |
if (counter == 12) |
81 |
instance_create(random(530), 140, obj_mouthball); |
82 |
if (counter == 24) |
83 |
instance_create(random(530), 140, obj_mouthball); |
84 |
if (counter == 36) |
85 |
instance_create(random(530), 140, obj_mouthball); |
86 |
} |
87 |
if (attack == 7) |
88 |
{ |
89 |
counter2 += 1; |
90 |
counter += 1; |
91 |
if (counter < 100) |
92 |
{ |
93 |
if (counter == 16) |
94 |
instance_create(0, 200 + random(280), obj_f_handgun); |
95 |
if (counter >= 20) |
96 |
counter = 15; |
97 |
} |
98 |
} |
99 |
if (attack == 8) |
100 |
{ |
101 |
counter += 1; |
102 |
if (counter == 2) |
103 |
{ |
104 |
with (obj_floweyarm) |
105 |
event_user(6); |
106 |
v_side = choose(0, 1); |
107 |
if (v_side == 1) |
108 |
{ |
109 |
if (leftarm.acon == 0) |
110 |
{ |
111 |
with (leftarm) |
112 |
event_user(1); |
113 |
} |
114 |
else |
115 |
{ |
116 |
with (rightarm) |
117 |
event_user(1); |
118 |
} |
119 |
} |
120 |
if (v_side == 0) |
121 |
{ |
122 |
if (rightarm.acon == 0) |
123 |
{ |
124 |
with (rightarm) |
125 |
event_user(1); |
126 |
} |
127 |
else |
128 |
{ |
129 |
with (leftarm) |
130 |
event_user(1); |
131 |
} |
132 |
} |
133 |
} |
134 |
} |
135 |
if (attack == 9) |
136 |
{ |
137 |
counter += 1; |
138 |
if (counter == 18) |
139 |
{ |
140 |
instance_create(110, 140, obj_floweyx_flamethrower); |
141 |
instance_create(530, 140, obj_floweyx_flamethrower); |
142 |
} |
143 |
if (counter >= 93) |
144 |
{ |
145 |
if (instance_exists(obj_floweyx_flamethrower)) |
146 |
obj_floweyx_flamethrower.con = 3; |
147 |
} |
148 |
} |
149 |
if (attack == 20) |
150 |
{ |
151 |
counter += 1; |
152 |
counter2 += 1; |
153 |
if (counter > 20) |
154 |
{ |
155 |
var v = instance_create(110 + random(400), 200, obj_gigavine_preview); |
156 |
v.memorymode = 1; |
157 |
} |
158 |
if (counter > 40) |
159 |
counter = 0; |
160 |
if (counter2 == 30) |
161 |
{ |
162 |
with (obj_flowey_master) |
163 |
event_user(4); |
164 |
nowhp = global.my_hp; |
165 |
} |
166 |
if (counter2 == 70) |
167 |
{ |
168 |
if (global.my_hp >= nowhp) |
169 |
{ |
170 |
with (obj_flowey_master) |
171 |
event_user(5); |
172 |
} |
173 |
} |
174 |
} |
175 |
if (attack == 21) |
176 |
{ |
177 |
if (counter2 == 15) |
178 |
checkx1 = obj_vsflowey_heart.x; |
179 |
counter += 1; |
180 |
counter2 += 1; |
181 |
if (counter2 < 40) |
182 |
{ |
183 |
if (counter == 14) |
184 |
{ |
185 |
with (obj_floweyx_lefteye) |
186 |
event_user(1); |
187 |
} |
188 |
if (counter >= 16) |
189 |
counter = 13; |
190 |
} |
191 |
if (counter2 == 45) |
192 |
checkx2 = obj_vsflowey_heart.x; |
193 |
if (counter2 > 50 && counter2 < 69) |
194 |
{ |
195 |
var v = instance_create(110 + random(400), 200, obj_gigavine_preview); |
196 |
if (checkx2 < checkx1) |
197 |
v.direction -= 12; |
198 |
if (checkx2 > checkx1) |
199 |
v.direction += 12; |
200 |
v.memorymode = 1; |
201 |
} |
202 |
if (counter2 == 40) |
203 |
{ |
204 |
nowhp = global.my_hp; |
205 |
with (obj_flowey_master) |
206 |
event_user(4); |
207 |
with (obj_eyeshot_a) |
208 |
memorymode = 1; |
209 |
} |
210 |
if (counter2 == 70) |
211 |
{ |
212 |
if (global.my_hp >= nowhp) |
213 |
{ |
214 |
with (obj_flowey_master) |
215 |
event_user(5); |
216 |
} |
217 |
with (obj_eyeshot_a) |
218 |
memorymode = 0; |
219 |
} |
220 |
} |
221 |
if (attack == 22) |
222 |
{ |
223 |
counter += 1; |
224 |
counter2 += 1; |
225 |
if (counter2 < 70) |
226 |
{ |
227 |
if (counter == 32) |
228 |
{ |
229 |
with (obj_floweyx_lefteye) |
230 |
event_user(1); |
231 |
} |
232 |
if (counter >= 36) |
233 |
counter = 31; |
234 |
} |
235 |
} |
236 |
if (attack == 23) |
237 |
{ |
238 |
counter += 1; |
239 |
counter += 1; |
240 |
if (counter == 30) |
241 |
{ |
242 |
instance_create(obj_floweyx_flipeye.x, obj_floweyx_flipeye.y, obj_eyewarning); |
243 |
instance_create(obj_floweyx_flipeye.x + obj_floweyx_flipeye.op, obj_floweyx_flipeye.y, obj_eyewarning); |
244 |
} |
245 |
if (counter == 40 && counter2 < 80) |
246 |
{ |
247 |
with (obj_floweyx_flipeye) |
248 |
event_user(1); |
249 |
} |
250 |
if (counter >= 42) |
251 |
counter = 32; |
252 |
} |
253 |
if (attack == 99) |
254 |
{ |
255 |
counter += 1; |
256 |
if (counter == 2) |
257 |
{ |
258 |
with (obj_floweyx_mouth) |
259 |
event_user(1); |
260 |
} |
261 |
} |