|
1
|
instance_create(0, 0, obj_darkshape_light_aura);
|
|
2
|
aim_var = 0;
|
|
3
|
creatorid = -4;
|
|
4
|
dark_count = 0;
|
|
5
|
basic_shapes = true;
|
|
6
|
only_centipedes = true;
|
|
7
|
noise_played = false;
|
|
8
|
ominous_loop = snd_loop(snd_organ_enemy_loop_temp);
|
|
9
|
audio_sound_gain(ominous_loop, 0, 0);
|
|
10
|
audio_sound_pitch(ominous_loop, 0.25);
|
|
11
|
ominous_volume = 0;
|
|
12
|
ominous_decline = true;
|
|
13
|
angery = true;
|
|
14
|
timer = 17;
|
|
15
|
timer_alt = 35;
|
|
16
|
timer_alt_goal = 36;
|
|
17
|
speedup_timer = 0;
|
|
18
|
random_offset = irandom(360);
|
|
19
|
spawn_counter = 0;
|
|
20
|
if (i_ex(obj_heart))
|
|
21
|
depth = obj_heart.depth + 1;
|
|
22
|
its_time = false;
|
|
23
|
star_list = ds_list_create();
|
|
24
|
barrage_offset = 40;
|
|
25
|
barrage_interval = 40;
|
|
26
|
barrage_end = 64;
|
|
27
|
phase_difficulty = 1;
|
|
28
|
havecreatedcentipedes = false;
|
|
29
|
|
|
30
|
pattern_default = function()
|
|
31
|
{
|
|
32
|
if (!noise_played)
|
|
33
|
{
|
|
34
|
snd_loop(snd_spawn_attack);
|
|
35
|
noise_played = true;
|
|
36
|
}
|
|
37
|
if ((timer % 12) == 0)
|
|
38
|
{
|
|
39
|
var tempdir = irandom(360);
|
|
40
|
var tempdist = 150 + irandom(50);
|
|
41
|
if ((spawn_counter % 5) == 4)
|
|
42
|
{
|
|
43
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_redshape);
|
|
44
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_heart.x + 10, obj_heart.y + 10);
|
|
45
|
newbullet.image_angle = newbullet.direction;
|
|
46
|
}
|
|
47
|
else
|
|
48
|
{
|
|
49
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
50
|
}
|
|
51
|
spawn_counter++;
|
|
52
|
}
|
|
53
|
};
|
|
54
|
|
|
55
|
pattern_default_speedup_red = function()
|
|
56
|
{
|
|
57
|
if (!noise_played)
|
|
58
|
{
|
|
59
|
snd_loop(snd_spawn_attack);
|
|
60
|
noise_played = true;
|
|
61
|
}
|
|
62
|
if ((timer % 12) == 2)
|
|
63
|
{
|
|
64
|
var tempdir = irandom(360);
|
|
65
|
var tempdist = 150 + irandom(50);
|
|
66
|
spawn_counter++;
|
|
67
|
if ((spawn_counter % 8) != 4)
|
|
68
|
{
|
|
69
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
70
|
}
|
|
71
|
else
|
|
72
|
{
|
|
73
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_redshape);
|
|
74
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_heart.x + 10, obj_heart.y + 10);
|
|
75
|
newbullet.image_angle = newbullet.direction;
|
|
76
|
}
|
|
77
|
}
|
|
78
|
};
|
|
79
|
|
|
80
|
pattern_default_speedup_red2 = function()
|
|
81
|
{
|
|
82
|
phase_difficulty = 2;
|
|
83
|
if (!noise_played)
|
|
84
|
{
|
|
85
|
snd_loop(snd_spawn_attack);
|
|
86
|
noise_played = true;
|
|
87
|
}
|
|
88
|
if ((timer % 12) == 2)
|
|
89
|
{
|
|
90
|
var tempdir = irandom(360);
|
|
91
|
var tempdist = 150 + irandom(50);
|
|
92
|
spawn_counter++;
|
|
93
|
var newbullet;
|
|
94
|
if ((spawn_counter % 3) != 2)
|
|
95
|
{
|
|
96
|
newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
97
|
if ((spawn_counter % 5) == 0)
|
|
98
|
{
|
|
99
|
newbullet.sprite_index = spr_darkshape_evolving_animated;
|
|
100
|
newbullet.shrink_sprite = spr_darkshape_evolving;
|
|
101
|
newbullet.light_rate *= 0.65;
|
|
102
|
newbullet.speed_max *= 0.65;
|
|
103
|
}
|
|
104
|
}
|
|
105
|
else
|
|
106
|
{
|
|
107
|
newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_redshape);
|
|
108
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_heart.x + 10, obj_heart.y + 10);
|
|
109
|
newbullet.image_angle = newbullet.direction;
|
|
110
|
}
|
|
111
|
newbullet.pushback_radius = 54;
|
|
112
|
}
|
|
113
|
};
|
|
114
|
|
|
115
|
pattern_default_speedup_red3 = function()
|
|
116
|
{
|
|
117
|
phase_difficulty = 3;
|
|
118
|
if (!noise_played)
|
|
119
|
{
|
|
120
|
snd_loop(snd_spawn_attack);
|
|
121
|
noise_played = true;
|
|
122
|
}
|
|
123
|
if ((timer % 8) == 2 && instance_number(obj_darkshape) < 20)
|
|
124
|
{
|
|
125
|
var tempdir = irandom(360);
|
|
126
|
var tempdist = 150 + irandom(50);
|
|
127
|
spawn_counter++;
|
|
128
|
var newbullet;
|
|
129
|
if ((spawn_counter % 2) == 0)
|
|
130
|
{
|
|
131
|
newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
132
|
}
|
|
133
|
else
|
|
134
|
{
|
|
135
|
newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
136
|
if (irandom(1))
|
|
137
|
{
|
|
138
|
newbullet.sprite_index = spr_darkshape_evolving_animated;
|
|
139
|
newbullet.shrink_sprite = spr_darkshape_evolving;
|
|
140
|
newbullet.light_rate *= 0.65;
|
|
141
|
newbullet.speed_max *= 0.65;
|
|
142
|
}
|
|
143
|
else
|
|
144
|
{
|
|
145
|
newbullet.sprite_index = spr_darkshape_desperate_animated;
|
|
146
|
newbullet.shrink_sprite = spr_darkshape_desperate;
|
|
147
|
newbullet.fastval = 3;
|
|
148
|
newbullet.light_rate *= 0.7;
|
|
149
|
}
|
|
150
|
}
|
|
151
|
newbullet.speed_max *= 1.1;
|
|
152
|
newbullet.pushback_radius = 58;
|
|
153
|
}
|
|
154
|
};
|
|
155
|
|
|
156
|
pattern_default_speedup = function()
|
|
157
|
{
|
|
158
|
if (!noise_played)
|
|
159
|
{
|
|
160
|
snd_loop(snd_spawn_attack);
|
|
161
|
noise_played = true;
|
|
162
|
}
|
|
163
|
timer_alt++;
|
|
164
|
speedup_timer++;
|
|
165
|
if ((timer % 16) == 0)
|
|
166
|
{
|
|
167
|
timer_alt -= floor((timer_alt_goal * 0.5) + random(timer_alt_goal));
|
|
168
|
timer_alt_goal = scr_approachscr_approach
function scr_approach(arg0, arg1, arg2)
{
if (arg0 < arg1)
{
arg0 += arg2;
if (arg0 > arg1)
return arg1;
}
else
{
arg0 -= arg2;
if (arg0 < arg1)
return arg1;
}
return arg0;
} (timer_alt_goal, 20, 4);
|
|
169
|
var tempdir = random_offset + radtodeg(tan(speedup_timer * 0.0375));
|
|
170
|
if (!irandom(8))
|
|
171
|
tempdir += 180;
|
|
172
|
var tempdist = 120 + irandom(50);
|
|
173
|
if ((spawn_counter % 5) == 4)
|
|
174
|
{
|
|
175
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_redshape);
|
|
176
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_heart.x + 10, obj_heart.y + 10);
|
|
177
|
newbullet.image_angle = newbullet.direction;
|
|
178
|
}
|
|
179
|
else
|
|
180
|
{
|
|
181
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
182
|
}
|
|
183
|
spawn_counter++;
|
|
184
|
}
|
|
185
|
};
|
|
186
|
|
|
187
|
pattern_centipede = function()
|
|
188
|
{
|
|
189
|
phase_difficulty = 2;
|
|
190
|
if (timer == 20 || timer == 62)
|
|
191
|
{
|
|
192
|
var tempdir = irandom(360);
|
|
193
|
var tempdist = 120 + irandom(50);
|
|
194
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape_centipede_head);
|
|
195
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_growtangle.x, obj_growtangle.y) + choose(-80, 80);
|
|
196
|
newbullet.image_angle = newbullet.direction;
|
|
197
|
newbullet.segment_max = 5;
|
|
198
|
newbullet.segment_length = 80;
|
|
199
|
with (newbullet)
|
|
200
|
event_user(0);
|
|
201
|
havecreatedcentipedes = true;
|
|
202
|
}
|
|
203
|
if ((timer % 20) == 0)
|
|
204
|
{
|
|
205
|
var tempdir = irandom(360);
|
|
206
|
var tempdist = 150 + irandom(50);
|
|
207
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
208
|
with (newbullet)
|
|
209
|
{
|
|
210
|
sprite_index = spr_darkshape_directed_small_animated;
|
|
211
|
shrink_sprite = spr_darkshape_directed_small;
|
|
212
|
light_rate *= 2.5;
|
|
213
|
speed_max *= 1.25;
|
|
214
|
updateimageangle = true;
|
|
215
|
}
|
|
216
|
}
|
|
217
|
};
|
|
218
|
|
|
219
|
pattern_centipede_noshapes = function()
|
|
220
|
{
|
|
221
|
if (timer == 20 || timer == 62)
|
|
222
|
{
|
|
223
|
var tempdir = irandom(360);
|
|
224
|
var tempdist = 120 + irandom(50);
|
|
225
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape_centipede_head);
|
|
226
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_growtangle.x, obj_growtangle.y) + choose(-80, 80);
|
|
227
|
newbullet.image_angle = newbullet.direction;
|
|
228
|
newbullet.segment_length = 50;
|
|
229
|
with (newbullet)
|
|
230
|
event_user(0);
|
|
231
|
havecreatedcentipedes = true;
|
|
232
|
}
|
|
233
|
if ((timer % 28) == 0)
|
|
234
|
{
|
|
235
|
var tempdir = irandom(360);
|
|
236
|
var tempdist = 150 + irandom(50);
|
|
237
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
238
|
with (newbullet)
|
|
239
|
{
|
|
240
|
sprite_index = spr_darkshape_directed_small_animated;
|
|
241
|
shrink_sprite = spr_darkshape_directed_small;
|
|
242
|
light_rate *= 2.5;
|
|
243
|
speed_max *= 1.25;
|
|
244
|
updateimageangle = true;
|
|
245
|
}
|
|
246
|
}
|
|
247
|
};
|
|
248
|
|
|
249
|
pattern_centipede_hard = function()
|
|
250
|
{
|
|
251
|
if (timer == 20 || timer == 62)
|
|
252
|
{
|
|
253
|
var tempdir = irandom(360);
|
|
254
|
var tempdist = 120 + irandom(50);
|
|
255
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape_centipede_head);
|
|
256
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_growtangle.x, obj_growtangle.y) + choose(-80, 80);
|
|
257
|
newbullet.image_angle = newbullet.direction;
|
|
258
|
newbullet.segment_length = 60;
|
|
259
|
newbullet.segment_max = 4;
|
|
260
|
with (newbullet)
|
|
261
|
event_user(0);
|
|
262
|
havecreatedcentipedes = true;
|
|
263
|
}
|
|
264
|
if ((timer % 12) == 0)
|
|
265
|
{
|
|
266
|
var tempdir = irandom(360);
|
|
267
|
var tempdist = 150 + irandom(50);
|
|
268
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
269
|
with (newbullet)
|
|
270
|
{
|
|
271
|
sprite_index = spr_darkshape_directed_small_animated;
|
|
272
|
shrink_sprite = spr_darkshape_directed_small;
|
|
273
|
light_rate *= 2.5;
|
|
274
|
speed_max *= 1.25;
|
|
275
|
updateimageangle = true;
|
|
276
|
}
|
|
277
|
}
|
|
278
|
};
|
|
279
|
|
|
280
|
pattern_bigshots = function()
|
|
281
|
{
|
|
282
|
if ((timer % 10) == 0)
|
|
283
|
{
|
|
284
|
var tempdir = irandom(360);
|
|
285
|
var tempdist = 150 + irandom(50);
|
|
286
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
287
|
spawn_counter++;
|
|
288
|
newbullet.image_xscale = 0.85;
|
|
289
|
newbullet.image_yscale = 0.85;
|
|
290
|
newbullet.scalefactor = 0.85;
|
|
291
|
if (timer > 125)
|
|
292
|
timer -= 96;
|
|
293
|
}
|
|
294
|
if (timer == 48)
|
|
295
|
snd_play(snd_sneo_overpower, 1, 0.35);
|
|
296
|
if (timer < 80 && timer > 48)
|
|
297
|
{
|
|
298
|
var cone_angle = 180 + irandom_range(-60, 60);
|
|
299
|
var cone_distance = 60 + irandom(240);
|
|
300
|
var cone_speed = 8 + irandom(8);
|
|
301
|
with (obj_darkshape_blast_tester)
|
|
302
|
{
|
|
303
|
with (instance_create(x + 40 + lengthdir_x(cone_distance, cone_angle), y + lengthdir_y(cone_distance, cone_angle), obj_bulletparent))
|
|
304
|
{
|
|
305
|
image_speed = cone_speed / 5;
|
|
306
|
image_angle = point_direction(x, y, other.x, other.y);
|
|
307
|
sprite_index = spr_chargeup_particle;
|
|
308
|
image_xscale = 2;
|
|
309
|
image_yscale = 0.25;
|
|
310
|
image_blend = c_gray;
|
|
311
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, cone_speed);
|
|
312
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 0.125, cone_speed);
|
|
313
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, other.x, cone_speed, 1, "in");
|
|
314
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.y, cone_speed, 1, "in");
|
|
315
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, cone_speed - 1);
|
|
316
|
}
|
|
317
|
}
|
|
318
|
}
|
|
319
|
if (timer == 66 || timer == 96)
|
|
320
|
{
|
|
321
|
with (obj_titan_enemy)
|
|
322
|
{
|
|
323
|
chargecon = 1;
|
|
324
|
chargetimer = 0;
|
|
325
|
chargetimermax = 30;
|
|
326
|
chargeshakex = 0;
|
|
327
|
}
|
|
328
|
}
|
|
329
|
if (timer == 96 || timer == 126)
|
|
330
|
{
|
|
331
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
332
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} ();
|
|
333
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, 180, 13))
|
|
334
|
{
|
|
335
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, 0);
|
|
336
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, 0);
|
|
337
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, 0);
|
|
338
|
}
|
|
339
|
}
|
|
340
|
};
|
|
341
|
|
|
342
|
pattern_bigshots_aimed = function()
|
|
343
|
{
|
|
344
|
var phaser = 0;
|
|
345
|
with (obj_titan_enemy)
|
|
346
|
{
|
|
347
|
if (phase >= 4)
|
|
348
|
phaser = 1;
|
|
349
|
if (phase >= 6)
|
|
350
|
phaser = 2;
|
|
351
|
}
|
|
352
|
if ((timer % 10) == 0)
|
|
353
|
{
|
|
354
|
var tempdir = irandom(360);
|
|
355
|
var tempdist = 150 + irandom(50);
|
|
356
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
357
|
spawn_counter++;
|
|
358
|
newbullet.image_xscale = 0.85;
|
|
359
|
newbullet.image_yscale = 0.85;
|
|
360
|
newbullet.scalefactor = 0.85;
|
|
361
|
}
|
|
362
|
if (timer > (126 + (phaser * 8)))
|
|
363
|
timer -= 96;
|
|
364
|
if (timer == 48)
|
|
365
|
{
|
|
366
|
snd_play(snd_sneo_overpower, 1, 0.35);
|
|
367
|
with (obj_titan_enemy)
|
|
368
|
{
|
|
369
|
chargecon = 1;
|
|
370
|
chargetimer = 0;
|
|
371
|
chargetimermax = 48;
|
|
372
|
chargeshakex = 0;
|
|
373
|
}
|
|
374
|
}
|
|
375
|
if (timer < 80 && timer > 48)
|
|
376
|
{
|
|
377
|
var cone_angle = 180 + irandom_range(-60, 60);
|
|
378
|
var cone_distance = 60 + irandom(240);
|
|
379
|
var cone_speed = 8 + irandom(8);
|
|
380
|
with (obj_darkshape_blast_tester)
|
|
381
|
{
|
|
382
|
with (instance_create(x + lengthdir_x(cone_distance, cone_angle), y + lengthdir_y(cone_distance, cone_angle), obj_bulletparent))
|
|
383
|
{
|
|
384
|
image_speed = cone_speed / 5;
|
|
385
|
image_angle = point_direction(x, y, other.x, other.y);
|
|
386
|
sprite_index = spr_chargeup_particle;
|
|
387
|
image_xscale = 2;
|
|
388
|
image_yscale = 0.25;
|
|
389
|
image_blend = c_gray;
|
|
390
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, cone_speed);
|
|
391
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 0.125, cone_speed);
|
|
392
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, other.x, cone_speed, 1, "in");
|
|
393
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.y, cone_speed, 1, "in");
|
|
394
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, cone_speed - 1);
|
|
395
|
}
|
|
396
|
}
|
|
397
|
}
|
|
398
|
if (timer == 112)
|
|
399
|
{
|
|
400
|
with (obj_titan_enemy)
|
|
401
|
{
|
|
402
|
chargecon = 1;
|
|
403
|
chargetimer = 0;
|
|
404
|
chargetimermax = 14;
|
|
405
|
chargeshakex = 0;
|
|
406
|
}
|
|
407
|
}
|
|
408
|
if (timer == 96 || (timer == 104 && phaser) || (timer == 112 && phaser > 1) || timer == 126 || (timer == 134 && phaser) || (timer == 142 && phaser > 1))
|
|
409
|
{
|
|
410
|
if (timer == 96 || timer == 126)
|
|
411
|
aim_var = scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y);
|
|
412
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
413
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} ();
|
|
414
|
with (obj_titan_enemy)
|
|
415
|
chargecon = 2;
|
|
416
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, aim_var, 13))
|
|
417
|
{
|
|
418
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
419
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
420
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
421
|
image_angle = direction;
|
|
422
|
xmod = 1.25;
|
|
423
|
ymod *= 0.75;
|
|
424
|
if (global.tempflag[96] > 3)
|
|
425
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 10.5, 6);
|
|
426
|
else
|
|
427
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 12, 6);
|
|
428
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
429
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
430
|
if (other.timer != 96 && other.timer != 126)
|
|
431
|
leavetrails = false;
|
|
432
|
}
|
|
433
|
}
|
|
434
|
};
|
|
435
|
|
|
436
|
pattern_bigshots_easy = function()
|
|
437
|
{
|
|
438
|
if ((timer % 15) == 0)
|
|
439
|
{
|
|
440
|
var tempdir = irandom(360);
|
|
441
|
var tempdist = 150 + irandom(50);
|
|
442
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
443
|
spawn_counter++;
|
|
444
|
newbullet.image_xscale = 0.85;
|
|
445
|
newbullet.image_yscale = 0.85;
|
|
446
|
newbullet.scalefactor = 0.85;
|
|
447
|
if (timer > 125)
|
|
448
|
timer -= 96;
|
|
449
|
}
|
|
450
|
if (timer == 48)
|
|
451
|
snd_play(snd_sneo_overpower, 1, 0.35);
|
|
452
|
if (timer < 80 && timer > 48)
|
|
453
|
{
|
|
454
|
var cone_angle = 180 + irandom_range(-60, 60);
|
|
455
|
var cone_distance = 60 + irandom(240);
|
|
456
|
var cone_speed = 8 + irandom(8);
|
|
457
|
with (obj_darkshape_blast_tester)
|
|
458
|
{
|
|
459
|
with (instance_create(x + 40 + lengthdir_x(cone_distance, cone_angle), y + lengthdir_y(cone_distance, cone_angle), obj_bulletparent))
|
|
460
|
{
|
|
461
|
image_speed = cone_speed / 5;
|
|
462
|
image_angle = point_direction(x, y, other.x, other.y);
|
|
463
|
sprite_index = spr_chargeup_particle;
|
|
464
|
image_xscale = 2;
|
|
465
|
image_yscale = 0.25;
|
|
466
|
image_blend = c_gray;
|
|
467
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, cone_speed);
|
|
468
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 0.125, cone_speed);
|
|
469
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, other.x, cone_speed, 1, "in");
|
|
470
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.y, cone_speed, 1, "in");
|
|
471
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, cone_speed - 1);
|
|
472
|
}
|
|
473
|
}
|
|
474
|
}
|
|
475
|
if (timer == 66)
|
|
476
|
{
|
|
477
|
with (obj_titan_enemy)
|
|
478
|
{
|
|
479
|
chargecon = 1;
|
|
480
|
chargetimer = 0;
|
|
481
|
chargetimermax = 30;
|
|
482
|
chargeshakex = 0;
|
|
483
|
}
|
|
484
|
}
|
|
485
|
if (timer == 96)
|
|
486
|
{
|
|
487
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
488
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} ();
|
|
489
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, 180, 13))
|
|
490
|
{
|
|
491
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
492
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
493
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
494
|
}
|
|
495
|
}
|
|
496
|
};
|
|
497
|
|
|
498
|
pattern_default_intro = function()
|
|
499
|
{
|
|
500
|
if (!noise_played)
|
|
501
|
{
|
|
502
|
snd_loop(snd_spawn_attack);
|
|
503
|
noise_played = true;
|
|
504
|
}
|
|
505
|
if ((timer % 24) == 0)
|
|
506
|
{
|
|
507
|
var tempdir = irandom(360);
|
|
508
|
var tempdist = 150 + irandom(50);
|
|
509
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
510
|
spawn_counter++;
|
|
511
|
newbullet.image_xscale = 0.85;
|
|
512
|
newbullet.image_yscale = 0.85;
|
|
513
|
newbullet.scalefactor = 0.85;
|
|
514
|
}
|
|
515
|
};
|
|
516
|
|
|
517
|
pattern_centipede_intro = function()
|
|
518
|
{
|
|
519
|
if (timer == 20 || timer == 62)
|
|
520
|
{
|
|
521
|
var tempdir = irandom(360);
|
|
522
|
var tempdist = 120 + irandom(50);
|
|
523
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape_centipede_head);
|
|
524
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_growtangle.x, obj_growtangle.y) + choose(-80, 80);
|
|
525
|
newbullet.image_angle = newbullet.direction;
|
|
526
|
with (newbullet)
|
|
527
|
event_user(0);
|
|
528
|
havecreatedcentipedes = true;
|
|
529
|
}
|
|
530
|
};
|
|
531
|
|
|
532
|
pattern_desperation_shots = function()
|
|
533
|
{
|
|
534
|
if ((timer % 10) == 0)
|
|
535
|
{
|
|
536
|
var tempdir = irandom(360);
|
|
537
|
var tempdist = 150 + irandom(50);
|
|
538
|
}
|
|
539
|
if (timer == 48)
|
|
540
|
{
|
|
541
|
snd_play(snd_sneo_overpower, 1, 0.35);
|
|
542
|
var extra_spicy = snd_play(snd_pullback, 1, 0.15);
|
|
543
|
sound_pitch_time(extra_spicy, 1, 300);
|
|
544
|
with (obj_titan_enemy)
|
|
545
|
{
|
|
546
|
chargecon = 1;
|
|
547
|
chargetimer = 0;
|
|
548
|
chargetimermax = 32;
|
|
549
|
}
|
|
550
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} ();
|
|
551
|
with (obj_darkshape_blast_tester)
|
|
552
|
{
|
|
553
|
for (var a = 0; a < 24; a++)
|
|
554
|
{
|
|
555
|
with (instance_create_depth(x, y, depth, obj_bulletparent))
|
|
556
|
{
|
|
557
|
var deth = 32 + a;
|
|
558
|
image_xscale = 0.5 + choose(0.5, 0, 1);
|
|
559
|
image_yscale = image_xscale;
|
|
560
|
sprite_index = spr_ring_particle1;
|
|
561
|
image_blend = c_white;
|
|
562
|
direction = irandom(360);
|
|
563
|
image_angle = direction;
|
|
564
|
speed = 12 + random(a * 0.25);
|
|
565
|
gravity = 0.5;
|
|
566
|
gravity_direction = direction + 180;
|
|
567
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, deth);
|
|
568
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", image_yscale, 0, deth, 2, "out");
|
|
569
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, deth);
|
|
570
|
}
|
|
571
|
}
|
|
572
|
with (instance_create_depth(x + 6, y, depth, obj_bulletparent))
|
|
573
|
{
|
|
574
|
image_xscale = 0.25;
|
|
575
|
image_yscale = 0.25;
|
|
576
|
sprite_index = spr_finisher_explosion;
|
|
577
|
image_index = 2;
|
|
578
|
image_speed = 0.5;
|
|
579
|
image_blend = c_gray;
|
|
580
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0.25, 1.5, 8);
|
|
581
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 1.5, 8);
|
|
582
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, 8);
|
|
583
|
}
|
|
584
|
with (instance_create_depth(x + 6, y, depth, obj_bulletparent))
|
|
585
|
{
|
|
586
|
image_xscale = 0.25;
|
|
587
|
image_yscale = 0.25;
|
|
588
|
sprite_index = spr_finisher_explosion;
|
|
589
|
image_index = 2;
|
|
590
|
image_speed = 1;
|
|
591
|
image_blend = c_gray;
|
|
592
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0.25, 2, 4);
|
|
593
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 2, 4);
|
|
594
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, 4);
|
|
595
|
}
|
|
596
|
}
|
|
597
|
}
|
|
598
|
if (timer < 80 && timer > 48)
|
|
599
|
{
|
|
600
|
repeat (2)
|
|
601
|
{
|
|
602
|
var cone_angle = 180 + irandom_range(-120, 120);
|
|
603
|
var cone_distance = 120 + irandom(240);
|
|
604
|
var cone_speed = 8 + irandom(8);
|
|
605
|
with (obj_darkshape_blast_tester)
|
|
606
|
{
|
|
607
|
with (instance_create(x + 40 + lengthdir_x(cone_distance, cone_angle), y + lengthdir_y(cone_distance, cone_angle), obj_bulletparent))
|
|
608
|
{
|
|
609
|
image_speed = cone_speed / 5;
|
|
610
|
image_angle = point_direction(x, y, other.x, other.y);
|
|
611
|
sprite_index = spr_chargeup_particle;
|
|
612
|
image_xscale = 5;
|
|
613
|
image_yscale = 0.25;
|
|
614
|
image_blend = c_gray;
|
|
615
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, cone_speed);
|
|
616
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 0.125, cone_speed);
|
|
617
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, other.x, cone_speed, 1, "in");
|
|
618
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.y, cone_speed, 1, "in");
|
|
619
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, cone_speed - 1);
|
|
620
|
}
|
|
621
|
}
|
|
622
|
}
|
|
623
|
if (timer <= 90 && (timer % 2) == 0)
|
|
624
|
{
|
|
625
|
with (obj_darkshape_blast_tester)
|
|
626
|
{
|
|
627
|
var ray = instance_create(x + 6, y, obj_titan_big_ray);
|
|
628
|
ray.start(min(96 - other.timer, 36));
|
|
629
|
}
|
|
630
|
}
|
|
631
|
}
|
|
632
|
if (timer >= 96 && (timer % 10) == 0 && timer > 2400)
|
|
633
|
{
|
|
634
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
635
|
with (obj_titan_enemy)
|
|
636
|
chargecon = 2;
|
|
637
|
with (obj_titan_enemy)
|
|
638
|
{
|
|
639
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 2, "chargecon", 1);
|
|
640
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 2, "chargetimer", 0);
|
|
641
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 2, "chargetimermax", 6);
|
|
642
|
}
|
|
643
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, 160 + timer_alt, 18))
|
|
644
|
{
|
|
645
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
646
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
647
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
648
|
xmod = 1.25;
|
|
649
|
ymod *= 0.75;
|
|
650
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
651
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
652
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
653
|
image_angle = direction;
|
|
654
|
if (other.timer != 96)
|
|
655
|
leavetrails = false;
|
|
656
|
}
|
|
657
|
timer_alt += irandom_range(10, 40);
|
|
658
|
if (timer_alt >= 40)
|
|
659
|
timer_alt -= 40;
|
|
660
|
}
|
|
661
|
if (timer == 96)
|
|
662
|
timer_alt = 0;
|
|
663
|
if (timer >= 96 && (timer % 10) == 0 && timer < 220)
|
|
664
|
{
|
|
665
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
666
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} (2, 2);
|
|
667
|
timer_alt = 1 - timer_alt;
|
|
668
|
with (obj_titan_enemy)
|
|
669
|
chargecon = 2;
|
|
670
|
with (obj_titan_enemy)
|
|
671
|
{
|
|
672
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargecon", 1);
|
|
673
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargetimer", 0);
|
|
674
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargetimermax", 10);
|
|
675
|
}
|
|
676
|
if (timer_alt == 1)
|
|
677
|
{
|
|
678
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y), 8))
|
|
679
|
{
|
|
680
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
681
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
682
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
683
|
xmod = 1.25;
|
|
684
|
ymod *= 0.75;
|
|
685
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
686
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
687
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
688
|
image_angle = direction;
|
|
689
|
if (other.timer != 96)
|
|
690
|
leavetrails = false;
|
|
691
|
}
|
|
692
|
for (var aa = 1; aa < 2; aa++)
|
|
693
|
{
|
|
694
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) + (35 * aa) + irandom_range(-5, 5), 8 + irandom_range(-3, 3)))
|
|
695
|
{
|
|
696
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
697
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
698
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
699
|
xmod = 1.25;
|
|
700
|
ymod *= 0.75;
|
|
701
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
702
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
703
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
704
|
image_angle = direction;
|
|
705
|
if (other.timer != 96)
|
|
706
|
leavetrails = false;
|
|
707
|
}
|
|
708
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, (scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) - (35 * aa)) + irandom_range(-5, 5), 8 + irandom_range(-3, 3)))
|
|
709
|
{
|
|
710
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
711
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
712
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
713
|
xmod = 1.25;
|
|
714
|
ymod *= 0.75;
|
|
715
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
716
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
717
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
718
|
image_angle = direction;
|
|
719
|
if (other.timer != 96)
|
|
720
|
leavetrails = false;
|
|
721
|
}
|
|
722
|
}
|
|
723
|
}
|
|
724
|
else
|
|
725
|
{
|
|
726
|
for (var aa = 1; aa < 2; aa++)
|
|
727
|
{
|
|
728
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) + (18 * aa) + irandom_range(-2, 2), 8 + irandom_range(-3, 3)))
|
|
729
|
{
|
|
730
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
731
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
732
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
733
|
xmod = 1.25;
|
|
734
|
ymod *= 0.75;
|
|
735
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
736
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
737
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
738
|
image_angle = direction;
|
|
739
|
if (other.timer != 96)
|
|
740
|
leavetrails = false;
|
|
741
|
}
|
|
742
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, (scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) - (18 * aa)) + irandom_range(-2, 2), 8 + irandom_range(-3, 3)))
|
|
743
|
{
|
|
744
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
745
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
746
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
747
|
xmod = 1.25;
|
|
748
|
ymod *= 0.75;
|
|
749
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 18, 8, 6);
|
|
750
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("xmod", xmod, 1, 6);
|
|
751
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("ymod", ymod, 1, 6);
|
|
752
|
image_angle = direction;
|
|
753
|
if (other.timer != 96)
|
|
754
|
leavetrails = false;
|
|
755
|
}
|
|
756
|
}
|
|
757
|
}
|
|
758
|
}
|
|
759
|
if (timer == 220)
|
|
760
|
{
|
|
761
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 276, obj_darkshape_blast_tester.y, obj_titan_biglaser, 0, 0))
|
|
762
|
depth = obj_growtangle.depth - 2;
|
|
763
|
}
|
|
764
|
};
|
|
765
|
|
|
766
|
pattern_desperation_shots_short = function()
|
|
767
|
{
|
|
768
|
if ((timer % 10) == 0)
|
|
769
|
{
|
|
770
|
var tempdir = irandom(360);
|
|
771
|
var tempdist = 150 + irandom(50);
|
|
772
|
}
|
|
773
|
if (timer == 48)
|
|
774
|
snd_play(snd_sneo_overpower, 1, 0.35);
|
|
775
|
if (timer == 48)
|
|
776
|
{
|
|
777
|
with (obj_titan_enemy)
|
|
778
|
{
|
|
779
|
chargecon = 1;
|
|
780
|
chargetimer = 0;
|
|
781
|
chargetimermax = 32;
|
|
782
|
}
|
|
783
|
}
|
|
784
|
if (timer < 80 && timer > 48)
|
|
785
|
{
|
|
786
|
var cone_angle = 180 + irandom_range(-60, 60);
|
|
787
|
var cone_distance = 60 + irandom(240);
|
|
788
|
var cone_speed = 8 + irandom(8);
|
|
789
|
with (obj_darkshape_blast_tester)
|
|
790
|
{
|
|
791
|
with (instance_create(x + 40 + lengthdir_x(cone_distance, cone_angle), y + lengthdir_y(cone_distance, cone_angle), obj_bulletparent))
|
|
792
|
{
|
|
793
|
image_speed = cone_speed / 5;
|
|
794
|
image_angle = point_direction(x, y, other.x, other.y);
|
|
795
|
sprite_index = spr_chargeup_particle;
|
|
796
|
image_xscale = 2;
|
|
797
|
image_yscale = 0.25;
|
|
798
|
image_blend = c_gray;
|
|
799
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, cone_speed);
|
|
800
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0.25, 0.125, cone_speed);
|
|
801
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, other.x, cone_speed, 1, "in");
|
|
802
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.y, cone_speed, 1, "in");
|
|
803
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (instance_destroy, cone_speed - 1);
|
|
804
|
}
|
|
805
|
}
|
|
806
|
}
|
|
807
|
if (timer == 96)
|
|
808
|
timer_alt = 0;
|
|
809
|
if (timer >= 96 && (timer % 20) == 0)
|
|
810
|
{
|
|
811
|
snd_play_pitch(snd_explosion_mmx3, 0.65);
|
|
812
|
scr_shakescreenscr_shakescreen
function scr_shakescreen(arg0 = 4, arg1 = 4)
{
var shaker = instance_create(x, y, obj_shake);
if (i_ex(shaker))
{
shaker.shakex = arg0;
shaker.shakey = arg1;
}
} ();
|
|
813
|
with (obj_titan_enemy)
|
|
814
|
chargecon = 2;
|
|
815
|
with (obj_titan_enemy)
|
|
816
|
{
|
|
817
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargecon", 1);
|
|
818
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargetimer", 0);
|
|
819
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "chargetimermax", 10);
|
|
820
|
}
|
|
821
|
timer_alt = 1 - timer_alt;
|
|
822
|
if (timer_alt == 1)
|
|
823
|
{
|
|
824
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y), 8))
|
|
825
|
{
|
|
826
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
827
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
828
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
829
|
if (other.timer != 96)
|
|
830
|
leavetrails = false;
|
|
831
|
}
|
|
832
|
for (var aa = 1; aa < 2; aa++)
|
|
833
|
{
|
|
834
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) + (25 * aa) + irandom_range(-5, 5), 8 + irandom_range(-3, 3)))
|
|
835
|
{
|
|
836
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
837
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
838
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
839
|
if (other.timer != 96)
|
|
840
|
leavetrails = false;
|
|
841
|
}
|
|
842
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, (scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) - (25 * aa)) + irandom_range(-5, 5), 8 + irandom_range(-3, 3)))
|
|
843
|
{
|
|
844
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
845
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
846
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
847
|
if (other.timer != 96)
|
|
848
|
leavetrails = false;
|
|
849
|
}
|
|
850
|
}
|
|
851
|
}
|
|
852
|
else
|
|
853
|
{
|
|
854
|
for (var aa = 1; aa < 2; aa++)
|
|
855
|
{
|
|
856
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) + (12 * aa) + irandom_range(-2, 2), 8 + irandom_range(-3, 3)))
|
|
857
|
{
|
|
858
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
859
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
860
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
861
|
if (other.timer != 96)
|
|
862
|
leavetrails = false;
|
|
863
|
}
|
|
864
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (obj_growtangle.x + 240, obj_darkshape_blast_tester.y, obj_darkshape_bigblast, (scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2));
} (obj_growtangle.x + 250, obj_darkshape_blast_tester.y) - (12 * aa)) + irandom_range(-2, 2), 8 + irandom_range(-3, 3)))
|
|
865
|
{
|
|
866
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 1, direction);
|
|
867
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 5, direction);
|
|
868
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_sonic_boom, 9, direction);
|
|
869
|
if (other.timer != 96)
|
|
870
|
leavetrails = false;
|
|
871
|
}
|
|
872
|
}
|
|
873
|
}
|
|
874
|
}
|
|
875
|
};
|
|
876
|
|
|
877
|
pattern_centipede_hard = function()
|
|
878
|
{
|
|
879
|
phase_difficulty = 3;
|
|
880
|
if (timer == 20)
|
|
881
|
{
|
|
882
|
var tempd = irandom(360);
|
|
883
|
for (var a = 0; a < 3; a++)
|
|
884
|
{
|
|
885
|
var tempdir = tempd + (120 * a);
|
|
886
|
var tempdist = 120 + irandom(50);
|
|
887
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape_centipede_head);
|
|
888
|
newbullet.direction = point_direction(newbullet.x, newbullet.y, obj_growtangle.x, obj_growtangle.y) + choose(-80, 80);
|
|
889
|
newbullet.image_angle = newbullet.direction;
|
|
890
|
newbullet.segment_max = 2;
|
|
891
|
newbullet.segment_length = 30;
|
|
892
|
with (newbullet)
|
|
893
|
event_user(0);
|
|
894
|
havecreatedcentipedes = true;
|
|
895
|
}
|
|
896
|
}
|
|
897
|
if ((timer % 12) == 0)
|
|
898
|
{
|
|
899
|
var tempdir = irandom(360);
|
|
900
|
var tempdist = 150 + irandom(50);
|
|
901
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + lengthdir_x(tempdist, tempdir), obj_growtangle.y + lengthdir_y(tempdist, tempdir), obj_darkshape);
|
|
902
|
with (newbullet)
|
|
903
|
{
|
|
904
|
sprite_index = spr_darkshape_directed_small_animated;
|
|
905
|
shrink_sprite = spr_darkshape_directed_small;
|
|
906
|
light_rate *= 2.5;
|
|
907
|
speed_max *= 1.25;
|
|
908
|
updateimageangle = true;
|
|
909
|
}
|
|
910
|
}
|
|
911
|
};
|
|
912
|
|
|
913
|
pattern_darkshape_final = function()
|
|
914
|
{
|
|
915
|
phase_difficulty = 2;
|
|
916
|
if (timer == 24)
|
|
917
|
{
|
|
918
|
snd_play(snd_tspawn, 1, 0.75);
|
|
919
|
var newbullet = scr_bullet_createscr_bullet_create
function scr_bullet_create(arg0, arg1, arg2)
{
var __newbullet = instance_create(arg0, arg1, arg2);
__newbullet.damage = damage;
__newbullet.target = target;
if (variable_instance_exists(self, "element"))
__newbullet.element = element;
return __newbullet;
} (obj_growtangle.x + 150, obj_growtangle.y, obj_darkshape_giant);
|
|
920
|
}
|
|
921
|
};
|
|
922
|
|
|
923
|
pattern_to_use = pattern_default;
|