Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_enemy_actor_Draw_0

(view raw script w/o annotations or w/e)
1
var _x = 0;
2
var _y = 0;
3
var __alpha = 0;
4
var __alpha2 = 0;
5
var __alpha3 = 0;
6
if (introcon >= 3 || (introcon == 2 && introtimer > 90))
7
    siner += 0.16666666666666666;
8
if (introcon > 0)
9
{
10
}
11
if (introcon == 0)
12
{
13
    introtimer++;
14
    if (introtimer >= 0 && introtimer <= 30)
15
        __alpha = lerp(0, 1, introtimer / 30);
16
    else
17
        __alpha = 1;
18
    if (introtimer == 60)
19
    {
20
        introcon = 0.5;
21
        introtimer = 0;
22
    }
23
}
24
if (introcon == 0.5)
25
{
26
    introtimer++;
27
    if (introtimer == 1)
28
        snd_play_x(snd_motor_ghost, 1, 0.6);
29
    if (introtimer == 1)
30
        snd_play_x(snd_motor_ghost, 1, 0.6);
31
    __alpha = 1;
32
    if (introtimer >= 0 && introtimer <= 30)
33
        __alpha3 = lerp(0, 1, introtimer / 30);
34
    else
35
        __alpha3 = 1;
36
    if (introtimer == 60)
37
    {
38
        introcon = 1;
39
        introtimer = 0;
40
    }
41
}
42
if (introcon == 0.75)
43
{
44
    introtimer++;
45
    if (introtimer == 1)
46
        snd_play_x(snd_motor_ghost, 1, 0.8);
47
    if (introtimer == 1)
48
        snd_play_x(snd_motor_ghost, 1, 0.8);
49
    if (introtimer >= 0 && introtimer <= 30)
50
        __alpha2 = lerp(0, 1, introtimer / 30);
51
    else
52
        __alpha2 = 1;
53
    __alpha = 1;
54
    __alpha3 = 1;
55
    if (introtimer == 60)
56
    {
57
        introcon = 1;
58
        introtimer = 0;
59
    }
60
}
61
if (introcon == 1)
62
{
63
    __alpha2 = 1;
64
    __alpha = 1;
65
    __alpha3 = 1;
66
}
67
if (introcon == 2)
68
{
69
    introtimer++;
70
    if (introtimer == 1)
71
        snd_play_x(snd_ghostappear, 1, 1);
72
    if (introtimer == 1)
73
        snd_play_x(snd_ghostappear, 1, 1);
74
    if (introtimer >= 0 && introtimer <= 30)
75
        __alpha2 = lerp(1, 0, introtimer / 30);
76
    else
77
        __alpha2 = 0;
78
    if (introtimer >= 0 && introtimer <= 30)
79
        __alpha3 = lerp(1, 0, introtimer / 30);
80
    else
81
        __alpha3 = 0;
82
    if (introtimer >= 0)
83
    {
84
        __alpha = lerp(1, 0, introtimer / 30);
85
        image_alpha = 1;
86
    }
87
    else
88
    {
89
        __alpha = 0;
90
    }
91
    if (introtimer == 60)
92
    {
93
        introcon = 3;
94
        introtimer = 89;
95
    }
96
}
97
if (introcon == 2)
98
{
99
    introtimer++;
100
    if (introtimer == 90)
101
    {
102
        mus_volume(global.currentsong[1], 0, 90);
103
        snd_play(snd_titan_wingshut);
104
        drawstate = "undefense";
105
        drawstatetimer = 6;
106
    }
107
    if (introtimer == 150)
108
    {
109
        introcon = 3;
110
        introtimer = 0;
111
    }
112
}
113
if (drawstate == "idle")
114
{
115
    if (introcon > 0)
116
        draw_sprite_ext(spr_titan_0_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
117
    if (__alpha > 0)
118
    {
119
        d3d_set_fog(true, c_black, 0, 1);
120
        draw_sprite_ext(spr_titan_0_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
121
        d3d_set_fog(false, c_black, 0, 0);
122
    }
123
    if (introcon > 0)
124
        draw_sprite_ext(spr_titan_1_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
125
    if (__alpha > 0)
126
    {
127
        d3d_set_fog(true, c_black, 0, 1);
128
        draw_sprite_ext(spr_titan_1_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
129
        d3d_set_fog(false, c_black, 0, 0);
130
    }
131
    if (introcon > 0)
132
        draw_sprite_ext(spr_titan_2_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
133
    if (__alpha > 0)
134
    {
135
        d3d_set_fog(true, c_black, 0, 1);
136
        draw_sprite_ext(spr_titan_2_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
137
        d3d_set_fog(false, c_black, 0, 0);
138
    }
139
    if (introcon > 0)
140
        draw_sprite_ext(spr_titan_3_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
141
    if (__alpha > 0)
142
    {
143
        d3d_set_fog(true, c_black, 0, 1);
144
        draw_sprite_ext(spr_titan_3_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
145
        d3d_set_fog(false, c_black, 0, 0);
146
    }
147
    if (introcon > 0)
148
        draw_monster_body_part(spr_cover_wings_defense_layer_4, siner, x, y);
149
    if (__alpha > 0)
150
    {
151
        d3d_set_fog(true, c_black, 0, 1);
152
        draw_sprite_ext(spr_cover_wings_defense_layer_4, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
153
        d3d_set_fog(false, c_black, 0, 0);
154
    }
155
    if (introcon > 0)
156
        draw_monster_body_part(spr_titan_star_disappear, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy);
157
    if (__alpha > 0)
158
    {
159
        d3d_set_fog(true, c_black, 0, 1);
160
        draw_sprite_ext(spr_titan_star_disappear, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, image_xscale, image_yscale, image_angle, image_blend, __alpha);
161
        d3d_set_fog(false, c_black, 0, 0);
162
    }
163
    if (introcon > 0)
164
        draw_sprite_ext(spr_titan_5_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
165
    if (__alpha > 0)
166
    {
167
        d3d_set_fog(true, c_black, 0, 1);
168
        draw_sprite_ext(spr_titan_5_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
169
        d3d_set_fog(false, c_black, 0, 0);
170
    }
171
    if (introcon > 0)
172
        draw_sprite_ext(spr_titan_6_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
173
    if (__alpha > 0)
174
    {
175
        d3d_set_fog(true, c_black, 0, 1);
176
        draw_sprite_ext(spr_titan_6_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
177
        d3d_set_fog(false, c_black, 0, 0);
178
    }
179
    if (introcon > 0)
180
        draw_sprite_ext(spr_titan_7_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
181
    if (__alpha > 0)
182
    {
183
        d3d_set_fog(true, c_black, 0, 1);
184
        draw_sprite_ext(spr_titan_7_backwing, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
185
        d3d_set_fog(false, c_black, 0, 0);
186
    }
187
    if (__alpha2 > 0)
188
        draw_sprite_ext(spr_titan_star_disappear, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, image_xscale, image_yscale, image_angle, image_blend, __alpha2);
189
}
190
if (drawstate == "defense")
191
{
192
    x = xstart - 6;
193
    var _winger = max(0, drawstatetimer);
194
    if (introcon > 0)
195
        draw_sprite_ext(spr_cover_wings_defense_layer_0, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
196
    if (__alpha > 0)
197
    {
198
        d3d_set_fog(true, c_black, 0, 1);
199
        draw_sprite_ext(spr_cover_wings_defense_layer_0, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
200
        d3d_set_fog(false, c_black, 0, 0);
201
    }
202
    if (introcon > 0)
203
        draw_sprite_ext(spr_cover_wings_defense_layer_1, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
204
    if (__alpha > 0)
205
    {
206
        d3d_set_fog(true, c_black, 0, 1);
207
        draw_sprite_ext(spr_cover_wings_defense_layer_1, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
208
        d3d_set_fog(false, c_black, 0, 0);
209
    }
210
    if (introcon > 0)
211
        draw_sprite_ext(spr_cover_wings_defense_layer_2, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
212
    if (__alpha > 0)
213
    {
214
        d3d_set_fog(true, c_black, 0, 1);
215
        draw_sprite_ext(spr_cover_wings_defense_layer_2, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
216
        d3d_set_fog(false, c_black, 0, 0);
217
    }
218
    if (introcon > 0)
219
        draw_sprite_ext(spr_cover_wings_defense_layer_3, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
220
    if (__alpha > 0)
221
    {
222
        d3d_set_fog(true, c_black, 0, 1);
223
        draw_sprite_ext(spr_cover_wings_defense_layer_3, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
224
        d3d_set_fog(false, c_black, 0, 0);
225
    }
226
    if (introcon > 0)
227
        draw_monster_body_part(spr_cover_wings_defense_layer_4, siner, x, y);
228
    if (__alpha > 0)
229
    {
230
        d3d_set_fog(true, c_black, 0, 1);
231
        draw_sprite_ext(spr_cover_wings_defense_layer_4, siner, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
232
        d3d_set_fog(false, c_black, 0, 0);
233
    }
234
    if (introcon > 0)
235
        draw_monster_body_part(spr_titan_star_disappear, starshoottimer / 6, x, y);
236
    if (__alpha > 0)
237
    {
238
        d3d_set_fog(true, c_black, 0, 1);
239
        draw_sprite_ext(spr_titan_star_disappear, starshoottimer / 6, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
240
        d3d_set_fog(false, c_black, 0, 0);
241
    }
242
    if (introcon > 0)
243
        draw_sprite_ext(spr_cover_wings_defense_layer_5, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
244
    if (__alpha > 0)
245
    {
246
        d3d_set_fog(true, c_black, 0, 1);
247
        draw_sprite_ext(spr_cover_wings_defense_layer_5, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
248
        d3d_set_fog(false, c_black, 0, 0);
249
    }
250
    if (introcon > 0)
251
        draw_sprite_ext(spr_cover_wings_defense_layer_6, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
252
    if (__alpha > 0)
253
    {
254
        d3d_set_fog(true, c_black, 0, 1);
255
        draw_sprite_ext(spr_cover_wings_defense_layer_6, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
256
        d3d_set_fog(false, c_black, 0, 0);
257
    }
258
    if (introcon > 0)
259
        draw_sprite_ext(spr_cover_wings_defense_layer_7, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
260
    if (__alpha > 0)
261
    {
262
        d3d_set_fog(true, c_black, 0, 1);
263
        draw_sprite_ext(spr_cover_wings_defense_layer_7, _winger, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
264
        d3d_set_fog(false, c_black, 0, 0);
265
    }
266
    if (__alpha2 > 0 && draw_sprite_ext(spr_titan_star_disappear, starshoottimer / 6, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha2))
267
    {
268
        if (drawstatetimer < 1)
269
        {
270
            drawstatetimer += 0.16666666666666666;
271
        }
272
        else if (drawstatetimer < 2)
273
        {
274
            drawstatetimer += 0.2;
275
        }
276
        else if (drawstatetimer < 3)
277
        {
278
            drawstatetimer += 0.25;
279
        }
280
        else if (drawstatetimer < 4)
281
        {
282
            drawstatetimer += (1/3);
283
        }
284
        else if (drawstatetimer < 5)
285
        {
286
            drawstatetimer += 0.5;
287
        }
288
        else if (drawstatetimer < 6)
289
        {
290
            drawstatetimer += (1/3);
291
        }
292
        else
293
        {
294
            drawstate = "defense end";
295
            drawstatetimer = 0;
296
        }
297
    }
298
    if (drawstatetimer == 0.16666666666666666)
299
    {
300
        snd_play(snd_titan_wingshut);
301
        feathercon = 1;
302
    }
303
}
304
if (drawstate == "defense end")
305
{
306
    x = xstart - 6;
307
    if (spd < maxspd)
308
        spd += 0.2;
309
    var _spd = spd;
310
    var _distance = 4;
311
    var _xx = 0;
312
    var _yy = 0;
313
    var rotation2 = 0;
314
    if (introcon < 2)
315
        rotation += _spd;
316
    var _c = dcos(rotation2);
317
    var _s = dsin(rotation2);
318
    _x = _xx + (_c * _distance) + (_s * _distance);
319
    _y = _yy + (-_s * _distance) + (_c * _distance);
320
    _c = dcos(rotation2 * -1);
321
    _s = dsin(rotation2 * -1);
322
    var _x2 = (_xx + (_c * _distance) + (_s * _distance)) * -1;
323
    var _y2 = (_yy + (-_s * _distance) + (_c * _distance)) * -1;
324
    _c = dcos(rotation2 - 90);
325
    _s = dsin(rotation2 - 90);
326
    var _x3 = _xx + (_c * _distance) + (_s * _distance);
327
    var _y3 = _yy + (-_s * _distance) + (_c * _distance);
328
    _c = dcos((rotation2 - 90) * -1);
329
    _s = dsin((rotation2 - 90) * -1);
330
    var _x4 = (_xx + (_c * _distance) + (_s * _distance)) * -1;
331
    var _y4 = (_yy + (-_s * _distance) + (_c * _distance)) * -1;
332
    _c = dcos(rotation2 - 180);
333
    _s = dsin(rotation2 - 180);
334
    var _x5 = _xx + (_c * _distance) + (_s * _distance);
335
    var _y5 = _yy + (-_s * _distance) + (_c * _distance);
336
    _c = dcos((rotation2 - 180) * -1);
337
    _s = dsin((rotation2 - 180) * -1);
338
    var _x6 = (_xx + (_c * _distance) + (_s * _distance)) * -1;
339
    var _y6 = (_yy + (-_s * _distance) + (_c * _distance)) * -1;
340
    _c = dcos(rotation - 270);
341
    _s = dsin(rotation - 270);
342
    var _x7 = _xx + (_c * _distance) + (_s * _distance);
343
    var _y7 = _yy + (-_s * _distance) + (_c * _distance);
344
    _c = dcos((rotation2 - 270) * -1);
345
    _s = dsin((rotation2 - 270) * -1);
346
    var _x8 = (_xx + (_c * _distance) + (_s * _distance)) * -1;
347
    var _y8 = (_yy + (-_s * _distance) + (_c * _distance)) * -1;
348
    if (rotation > 359)
349
        rotation -= 360;
350
    siner += 0.16666666666666666;
351
    if (introcon > 0)
352
        draw_sprite_ext(spr_cover_wings_defense_layer_0, 6, x + _x, y + _y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
353
    if (introcon > 0)
354
        draw_sprite_ext(spr_cover_wings_defense_layer_1, 6, x + _x2, y + _y2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
355
    if (introcon > 0)
356
        draw_sprite_ext(spr_cover_wings_defense_layer_2, 6, x + _x3, y + _y3, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
357
    if (introcon > 0)
358
        draw_sprite_ext(spr_cover_wings_defense_layer_3, 6, x + _x4, y + _y4, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
359
    if (introcon > 0)
360
        draw_monster_body_part(spr_cover_wings_defense_layer_4, siner, x, y);
361
    if (introcon > 0)
362
        draw_monster_body_part(spr_titan_star_idle, siner, x + _x7, y + _y7);
363
    if (introcon > 0)
364
        draw_sprite_ext(spr_cover_wings_defense_layer_5, 6, x + _x5, y + _y5, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
365
    if (introcon > 0)
366
        draw_sprite_ext(spr_cover_wings_defense_layer_6, 6, x + _x6, y + _y6, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
367
    if (introcon > 0)
368
        draw_sprite_ext(spr_cover_wings_defense_layer_7, 6, x + _x8, y + _y8, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
369
    if (__alpha > 0)
370
    {
371
        d3d_set_fog(true, c_black, 0, 1);
372
        draw_sprite_ext(spr_pixel_white, 0, x + 150, y - 150, 400, 400, image_angle, image_blend, __alpha);
373
        d3d_set_fog(false, c_black, 0, 0);
374
    }
375
    if (__alpha3 > 0)
376
        draw_sprite_ext(spr_cover_wings_defense_highlight2, 0, x + _x + 210, y + _y + 80 + 30, image_xscale, image_yscale, image_angle, image_blend, __alpha3);
377
}
378
if (drawstate == "undefense")
379
{
380
    drawstatetimer -= 0.16666666666666666;
381
    if (drawstatetimer < 0.1)
382
        drawstatetimer = 0;
383
    if (introcon > 0 && drawstatetimer < 6)
384
    {
385
        var _index = drawstatetimer - (2/3);
386
        if (_index < 0.1)
387
            _index = 0;
388
        draw_sprite_ext(spr_cover_wings_defense_layer_0, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
389
        draw_sprite_ext(spr_cover_wings_defense_layer_1, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
390
        draw_sprite_ext(spr_cover_wings_defense_layer_2, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
391
        draw_sprite_ext(spr_cover_wings_defense_layer_3, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
392
        draw_sprite_ext(spr_cover_wings_defense_layer_4, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
393
        draw_sprite_ext(spr_titan_star_disappear, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
394
        draw_sprite_ext(spr_cover_wings_defense_layer_5, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
395
        draw_sprite_ext(spr_cover_wings_defense_layer_6, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
396
        draw_sprite_ext(spr_cover_wings_defense_layer_7, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 1/3);
397
        _index = drawstatetimer - (1/3);
398
        if (_index > 0)
399
        {
400
            draw_sprite_ext(spr_cover_wings_defense_layer_0, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
401
            draw_sprite_ext(spr_cover_wings_defense_layer_1, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
402
            draw_sprite_ext(spr_cover_wings_defense_layer_2, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
403
            draw_sprite_ext(spr_cover_wings_defense_layer_3, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
404
            draw_sprite_ext(spr_cover_wings_defense_layer_4, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
405
            draw_sprite_ext(spr_titan_star_disappear, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
406
            draw_sprite_ext(spr_cover_wings_defense_layer_5, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
407
            draw_sprite_ext(spr_cover_wings_defense_layer_6, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
408
            draw_sprite_ext(spr_cover_wings_defense_layer_7, _index, x, y, image_xscale, image_yscale, image_angle, image_blend, 2/3);
409
        }
410
        draw_sprite_ext(spr_cover_wings_defense_layer_0, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
411
        draw_sprite_ext(spr_cover_wings_defense_layer_1, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
412
        draw_sprite_ext(spr_cover_wings_defense_layer_2, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
413
        draw_sprite_ext(spr_cover_wings_defense_layer_3, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
414
        draw_monster_body_part(spr_cover_wings_defense_layer_4, drawstatetimer, x, y);
415
        draw_monster_body_part(spr_titan_star_disappear, starshoottimer / 6, x, y);
416
        draw_sprite_ext(spr_cover_wings_defense_layer_5, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
417
        draw_sprite_ext(spr_cover_wings_defense_layer_6, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
418
        draw_sprite_ext(spr_cover_wings_defense_layer_7, drawstatetimer, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
419
    }
420
    if (__alpha2 > 0)
421
        draw_sprite_ext(spr_titan_star_disappear, starshoottimer / 6, x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha2);
422
    if (drawstatetimer < 2 && feathercon == 1)
423
        feathercon = 1;
424
    if (drawstatetimer < 1.4 && !i_ex(obj_afterimage_screen))
425
    {
426
        with (instance_create(camerax() + 460, cameray() + 200, obj_afterimage_screen))
427
            faderate = 0.05;
428
    }
429
    if (drawstatetimer < 0.1)
430
        drawstate = "idle";
431
}
432
if (becomeflash == 0)
433
    flash = 0;
434
becomeflash = 0;
435
if (feathercon == 1)
436
{
437
    feathertimer++;
438
    if (feathertimer == 5)
439
    {
440
        for (i = 0; i < 8; i++)
441
        {
442
            o = instance_create_depth(camerax() + 280 + irandom(100), cameray() + 120 + irandom(180), depth + 1, obj_titan_feather);
443
            o.direction = 130 + irandom(60);
444
            o.speed = random_range(5, 10);
445
            o.image_index = 2 + irandom(2);
446
        }
447
    }
448
    if (feathertimer >= 5)
449
    {
450
        feathercon = 0;
451
        feathertimer = 0;
452
    }
453
}
454
if (feathercon == 2)
455
{
456
    feathertimer++;
457
    if (feathertimer == 15)
458
    {
459
        for (i = 0; i < 8; i++)
460
        {
461
            o = instance_create_depth(camerax() + 280 + irandom(50), cameray() + 120 + irandom(180), depth + 1, obj_titan_feather);
462
            o.direction = 130 + irandom(60);
463
            o.speed = random_range(5, 7);
464
            o.image_index = 2 + irandom(2);
465
        }
466
    }
467
    if (feathertimer >= 20)
468
    {
469
        feathercon = 0;
470
        feathertimer = 0;
471
    }
472
}