Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_actor_tenna_Draw_0

(view raw script w/o annotations or w/e)
1
if (golden_mode)
2
    pal_swap_set(palette_sprite, 1, false);
3
if (facing == "r")
4
    reversal = 1;
5
if (facing == "l")
6
    reversal = 0;
7
facing = "d";
8
siner += speedscale;
9
siner0 += speedscale;
10
siner1 += speedscale;
11
siner2 += speedscale;
12
if (!scaled_bounce)
13
{
14
    if (bounce == 1)
15
    {
16
        image_yscale = 2.5;
17
        image_xscale = (image_xscale < 0) ? -1.5 : 1.5;
18
        bounce = 2;
19
    }
20
    if (bounce == 2)
21
    {
22
        var target_scale = (image_xscale < 0) ? -2 : 2;
23
        
scr_lerpvar
scr_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, target_scale, 16, -2, "out");
24
        
scr_lerpvar
scr_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, 2, 16, -2, "out");
25
        bounce = 3;
26
    }
27
    if (bounce == 3)
28
    {
29
        if (image_yscale <= 2.01)
30
        {
31
            image_yscale = 2;
32
            bounce = 0;
33
        }
34
    }
35
}
36
else
37
{
38
    if (bounce == 1)
39
    {
40
        cur_xscale = image_xscale;
41
        cur_yscale = image_yscale;
42
        bounce = 2;
43
    }
44
    if (bounce == 2)
45
    {
46
        image_yscale = cur_yscale * 1.25;
47
        image_xscale = cur_xscale * 0.75;
48
        bounce = 3;
49
    }
50
    if (bounce == 3)
51
    {
52
        
scr_lerpvar
scr_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, cur_xscale, 16, -2, "out");
53
        
scr_lerpvar
scr_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, cur_yscale, 16, -2, "out");
54
        bounce = 4;
55
    }
56
    if (bounce == 4)
57
    {
58
        if (image_yscale <= (cur_yscale + 0.1))
59
        {
60
            image_yscale = cur_yscale;
61
            bounce = 0;
62
        }
63
    }
64
}
65
if (preset != -1)
66
{
67
    drawtype = 0;
68
    if (preset == 0)
69
    {
70
        image_speed = 0;
71
        wobblestate = 0;
72
        wobbletime = 0;
73
        wobbleamt = 0;
74
        drawtype = 1;
75
    }
76
    if (preset == 1)
77
    {
78
        sprite_index = spr_tenna_laugh_pose;
79
        wobblestate = 1;
80
        wobbletime = 4;
81
        wobbleamt = 10;
82
    }
83
    if (preset == 2)
84
    {
85
        sprite_index = spr_tenna_point_up;
86
        wobblestate = 1;
87
        wobbletime = 4;
88
        wobbleamt = 8;
89
    }
90
    if (preset == -2)
91
    {
92
        wobblestate = 1;
93
        wobbletime = 4;
94
        wobbleamt = 8;
95
    }
96
    if (preset == -3)
97
    {
98
        sprite_index = spr_tenna_pose_podium;
99
        image_index = 1;
100
        wobblestate = 1;
101
        wobbletime = 4;
102
        wobbleamt = 8;
103
    }
104
    if (preset == 2.5)
105
    {
106
        sprite_index = spr_tenna_point_top;
107
        wobblestate = 1;
108
        wobbletime = 4;
109
        wobbleamt = 8;
110
    }
111
    if (preset == 3)
112
    {
113
        sprite_index = spr_tenna_listening;
114
        wobblestate = 1;
115
        wobbletime = 4;
116
        wobbleamt = 30;
117
    }
118
    if (preset == 4)
119
    {
120
        sprite_index = spr_tenna_laugh_pose;
121
        wobblestate = 3;
122
        wobbletime = 3;
123
        wobbleamt = 15;
124
    }
125
    if (preset == 5)
126
    {
127
        reversal = 0;
128
        animchangetimer = 8;
129
        wobblestate = 4;
130
        wobbleamt = 40;
131
        wobbletime = 4;
132
        changespeed = 20;
133
    }
134
    if (preset == 6)
135
    {
136
        sprite_index = spr_tenna_bow;
137
        image_speed = 0.25;
138
        wobblestate = 5;
139
        wobbletime = 3;
140
        wobbleamt = 10;
141
    }
142
    if (preset == 7)
143
    {
144
        sprite_index = spr_tenna_sad;
145
        wobblestate = 6;
146
        wobbletime = 12;
147
        wobbleamt = 20;
148
    }
149
    if (preset == 8)
150
    {
151
        wobblestate = 6;
152
        wobbletime = 1;
153
        wobbleamt = 2;
154
    }
155
    if (preset == 9)
156
    {
157
        wobblestate = 7;
158
        wobbletime = 0.5;
159
        wobbleamt = 2;
160
    }
161
    if (preset == 10)
162
    {
163
        wobblestate = 0;
164
        wobbletime = 0;
165
        wobbleamt = 0;
166
        drawtype = 1;
167
    }
168
    if (preset == 11)
169
    {
170
        sprite_index = spr_tenna_bow;
171
        image_speed = 0.5;
172
        wobblestate = 8;
173
        wobbletime = 1;
174
        wobbleamt = 10;
175
    }
176
    if (preset == 12)
177
    {
178
        sprite_index = spr_tenna_grasp_anim;
179
        image_speed = 0.35;
180
        wobblestate = 1;
181
        wobbletime = 2;
182
        wobbleamt = 20;
183
    }
184
    if (preset == 13)
185
    {
186
        sprite_index = spr_tenna_grasp_anim_b;
187
        image_speed = 0.5;
188
        wobblestate = 6;
189
        wobbletime = 2;
190
        wobbleamt = 20;
191
        drawtype = 1;
192
    }
193
    if (preset == 14)
194
    {
195
        sprite_index = spr_tenna_evil;
196
        wobblestate = 7;
197
        wobbletime = 1;
198
        wobbleamt = 2;
199
    }
200
    if (preset == 15)
201
    {
202
        wobblestate = 6;
203
        wobbletime = 0.5;
204
        wobbleamt = 6;
205
    }
206
    if (preset == 16)
207
    {
208
        wobblestate = 10;
209
        wobbletime = 3;
210
        wobbleamt = 30;
211
    }
212
    if (preset == 17)
213
    {
214
        sprite_index = spr_tenna_dance_cane;
215
        wobblestate = 0;
216
        wobbletime = 0;
217
        wobbleamt = 0;
218
        drawtype = 1;
219
    }
220
    if (preset == 18)
221
    {
222
        reversal = 0;
223
        animchangetimer = 4;
224
        wobblestate = 4;
225
        wobbleamt = 20;
226
        wobbletime = 4;
227
    }
228
    if (preset == 19)
229
    {
230
        rosecon = 1;
231
        rosetimer = 0;
232
        drawtype = 3;
233
        image_xscale = 0.5 * sign(image_xscale);
234
        image_yscale = 0.5;
235
        image_speed = 0;
236
        image_index = 0;
237
    }
238
    if (preset == 20)
239
    {
240
        wobblestate = 5;
241
        wobbletime = 3;
242
        wobbleamt = 30;
243
    }
244
    if (preset == 21)
245
    {
246
        wobblestate = 12;
247
        wobbleamt = 7;
248
        wobbletime = 4.5;
249
        drawtype = 0;
250
        image_speed = 0;
251
        sprite_index = spr_tenna_point_at_screen;
252
    }
253
    if (preset == -21)
254
    {
255
        wobblestate = 12;
256
        wobbleamt = 7;
257
        wobbletime = 4.5;
258
        drawtype = 0;
259
    }
260
    if (preset == 22)
261
    {
262
        wobblestate = 7;
263
        wobbleamt = 5.9;
264
        wobbletime = 2.4;
265
        drawtype = 0;
266
        image_speed = 0;
267
        sprite_index = spr_tenna_pose;
268
    }
269
    if (preset == 23)
270
    {
271
        wobblestate = 8;
272
        wobbleamt = 7.7;
273
        wobbletime = 6;
274
        drawtype = 0;
275
        image_speed = 0.25;
276
        sprite_index = spr_tenna_blossom_animation;
277
    }
278
    if (preset == 24)
279
    {
280
        wobblestate = 8;
281
        wobbleamt = 7.7;
282
        wobbletime = 6;
283
        drawtype = 0;
284
        image_speed = 0.25;
285
        sprite_index = spr_tenna_dance_cabbage;
286
    }
287
    if (preset == 25)
288
    {
289
        wobblestate = 8;
290
        wobbleamt = 7.7;
291
        wobbletime = 6;
292
        drawtype = 0;
293
        image_speed = 0.25;
294
        sprite_index = spr_tenna_dance_cane;
295
    }
296
    if (preset == 26)
297
    {
298
        wobblestate = 5.5;
299
        wobbletime = 10;
300
        wobbleamt = 40;
301
        siner = 1.5707963267948966 * wobbletime;
302
    }
303
    if (preset == 27)
304
    {
305
        sprite_index = spr_tenna_hooray;
306
        image_index = 0;
307
        image_speed = 0;
308
        bounce = 0;
309
    }
310
    if (preset == 28)
311
    {
312
        sprite_index = spr_tenna_hooray;
313
        image_index = 3;
314
        image_speed = 0;
315
        wobbleamt = 30;
316
        wobblestate = 1;
317
        wobbletime = 10;
318
        bounce = 1;
319
    }
320
    if (preset == 30)
321
    {
322
        wobblestate = 0;
323
        wobbleamt = 0;
324
        wobbletime = 0;
325
        drawtype = 1;
326
        image_speed = 1;
327
        sprite_index = spr_tenna_twirl;
328
    }
329
    if (preset == 31)
330
    {
331
        wobbleamt = 15;
332
        wobblestate = 12;
333
        wobbletime = 5;
334
        bounce = 0;
335
    }
336
    if (preset == 32)
337
    {
338
        wobblestate = 12;
339
        wobbleamt = 7;
340
        wobbletime = 4.5;
341
        drawtype = 0;
342
        image_speed = 0;
343
        sprite_index = spr_tenna_pose;
344
    }
345
    if (preset == -32)
346
    {
347
        wobblestate = 12;
348
        wobbleamt = 7;
349
        wobbletime = 4.5;
350
        drawtype = 0;
351
    }
352
    if (preset == 33)
353
    {
354
        reversal = 0;
355
        wobblestate = 8;
356
        wobbleamt = 40;
357
        wobbletime = 4;
358
    }
359
    if (preset == 34)
360
    {
361
        reversal = 0;
362
        wobblestate = 13;
363
        changespeed = 15;
364
        animchangetimer = 0;
365
        pointcon = 0;
366
        wobbleamt = 10;
367
        wobbletime = 4;
368
    }
369
    if (preset == 35)
370
    {
371
        reversal = 0;
372
        wobblestate = -1;
373
        rate = 2;
374
        shtimer = 0;
375
        drawtype = 2;
376
    }
377
    if (preset == 36)
378
    {
379
        reversal = 0;
380
        drawtype = 0;
381
        siner = 0;
382
        wobbleamt = 10;
383
        wobblestate = 16;
384
    }
385
    if (preset == 37)
386
    {
387
        reversal = 0;
388
        drawtype = 0;
389
        siner = 0;
390
        wobbleamt = 10;
391
        wobblestate = 14;
392
    }
393
    if (preset == 69)
394
    {
395
        wobblestate = 6;
396
        wobbleamt = 20;
397
        wobbletime = 4;
398
        drawtype = 0;
399
        image_speed = 0.25;
400
        sprite_index = spr_tenna_bulletin;
401
    }
402
    preset = -1;
403
}
404
x1 = x - sprite_xoffset;
405
y1 = y - sprite_yoffset;
406
x2 = (x - sprite_xoffset) + sprite_width;
407
y2 = y - sprite_yoffset;
408
x3 = (x - sprite_xoffset) + sprite_width;
409
y3 = (y - sprite_yoffset) + sprite_height;
410
x4 = x - sprite_xoffset;
411
y4 = (y - sprite_yoffset) + sprite_height;
412
var reversalsign = 1;
413
if (reversal == 1)
414
    reversalsign = -1;
415
if (wobblestate == 1)
416
{
417
    x1 += (abs(sin(siner / wobbletime) * wobbleamt) * reversalsign);
418
    x2 += (abs(sin(siner / wobbletime) * wobbleamt) * reversalsign);
419
    y1 -= abs(sin(siner / wobbletime) * wobbleamt);
420
    y2 += abs(sin(siner / wobbletime) * wobbleamt);
421
}
422
if (wobblestate == 2)
423
{
424
    x1 += (sin(siner / wobbletime) * 10 * reversalsign);
425
    x2 += (sin(siner / wobbletime) * 10 * reversalsign);
426
    y1 -= (sin((siner / wobbletime) * 0.9) * 14);
427
    y2 += (sin((siner / wobbletime) * 1.1) * 14);
428
}
429
if (wobblestate == 3)
430
{
431
    if (sin(siner / wobbletime) < 0)
432
        reversal = 1;
433
    else
434
        reversal = 0;
435
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
436
    var addamt2 = addamt;
437
    if (reversal == 1)
438
        addamt = -addamt;
439
    x1 += addamt;
440
    x2 += addamt;
441
    y1 -= addamt2;
442
    y2 += addamt2;
443
}
444
var _keep_pivot = false;
445
if (wobblestate == 4)
446
{
447
    siner -= (speedscale - 1);
448
    animchangetimer += speedscale;
449
    if (animchangetimer >= changespeed && pointcon == 0)
450
    {
451
        reversal = 0;
452
        sprite_index = spr_tenna_point_left;
453
        bounce = 1;
454
        pointcon++;
455
    }
456
    if (animchangetimer >= (changespeed * 2) && pointcon == 1)
457
    {
458
        reversal = 0;
459
        sprite_index = spr_tenna_point_up;
460
        x1 = x - sprite_xoffset;
461
        y1 = y - sprite_yoffset;
462
        x2 = (x - sprite_xoffset) + sprite_width;
463
        y2 = y - sprite_yoffset;
464
        x3 = (x - sprite_xoffset) + sprite_width;
465
        y3 = (y - sprite_yoffset) + sprite_height;
466
        x4 = x - sprite_xoffset;
467
        y4 = (y - sprite_yoffset) + sprite_height;
468
        bounce = 1;
469
        pointcon++;
470
    }
471
    if (animchangetimer >= (changespeed * 3) && pointcon == 2)
472
    {
473
        sprite_index = spr_tenna_point_left;
474
        reversal = 1;
475
        bounce = 1;
476
        pointcon++;
477
    }
478
    if (animchangetimer >= (changespeed * 4) && !i_ex(obj_elnina_lanino_controller))
479
    {
480
        reversal = 1;
481
        sprite_index = spr_tenna_point_up;
482
        x1 = x - sprite_xoffset;
483
        y1 = y - sprite_yoffset;
484
        x2 = (x - sprite_xoffset) + sprite_width;
485
        y2 = y - sprite_yoffset;
486
        x3 = (x - sprite_xoffset) + sprite_width;
487
        y3 = (y - sprite_yoffset) + sprite_height;
488
        x4 = x - sprite_xoffset;
489
        y4 = (y - sprite_yoffset) + sprite_height;
490
        bounce = 1;
491
        animchangetimer = 0;
492
        pointcon = 0;
493
    }
494
    if (pointcon == 3)
495
        _keep_pivot = true;
496
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
497
    var addamt2 = addamt;
498
    if (reversal == 1)
499
        addamt = -addamt;
500
    x1 += addamt;
501
    x2 += addamt;
502
    y1 -= addamt2;
503
    y2 += addamt2;
504
}
505
if (wobblestate == 5)
506
{
507
    if (sin(siner / wobbletime) < 0)
508
        reversal = 1;
509
    else
510
        reversal = 0;
511
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
512
    var addamt2 = addamt;
513
    if (reversal == 1)
514
        addamt = -addamt;
515
    x1 += addamt;
516
    x2 += addamt;
517
    y1 -= addamt2;
518
    y2 += addamt2;
519
}
520
if (wobblestate > 5 && wobblestate < 6)
521
{
522
    if (wobblestate == 5.5)
523
    {
524
        x1 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
525
        x2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
526
        y1 -= (abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt);
527
        y2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) / 2);
528
        if (sin((siner + 1) / wobbletime) <= 0.5)
529
        {
530
            wobblestate = 5.6;
531
            sprite_index = spr_tenna_sad;
532
        }
533
    }
534
    if (wobblestate == 5.6)
535
    {
536
        x1 += ((abs(sin(siner / wobbletime) * wobbleamt) - (wobbleamt / 2)) * reversalsign);
537
        x2 += ((abs(sin(siner / wobbletime) * wobbleamt) - (wobbleamt / 2)) * reversalsign);
538
        y1 -= (abs(sin(siner / wobbletime) * wobbleamt) - (wobbleamt / 2));
539
        y2 += ((abs(sin(siner / wobbletime) * wobbleamt) - (wobbleamt / 2)) / 2);
540
        if (sin((siner + 1) / wobbletime) <= 0)
541
            preset = 7;
542
    }
543
}
544
if (wobblestate == 6)
545
{
546
    x1 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
547
    x2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
548
    y1 -= (abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt);
549
    y2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) / 2);
550
}
551
if (wobblestate == 7)
552
{
553
    x1 += (sin(siner / wobbletime) * wobbleamt * reversalsign);
554
    x2 += (sin(siner / wobbletime) * wobbleamt * reversalsign);
555
    y1 -= (((sin((siner / wobbletime) * 0.5) * wobbleamt) / 2) * -1);
556
    y2 += ((sin((siner / wobbletime) * 0.5) * wobbleamt) / 3);
557
}
558
if (wobblestate == 8)
559
{
560
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
561
    var addamt2 = addamt;
562
    if (reversal == 1)
563
        addamt = -addamt;
564
    x1 += addamt;
565
    x2 += addamt;
566
    y1 -= addamt2;
567
    y2 += addamt2;
568
}
569
if (wobblestate == 9)
570
{
571
    y1 -= (sin((siner / wobbletime) * wobbleamt * 0.9) * 14);
572
    y2 += (sin((siner / wobbletime) * wobbleamt * 1.1) * 14);
573
}
574
if (wobblestate == 10)
575
{
576
    var localReverse = 0;
577
    if (sin(siner / wobbletime) < 0)
578
        localReverse = 1;
579
    else
580
        localReverse = 0;
581
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
582
    var addamt2 = addamt;
583
    if (localReverse == 1)
584
        addamt = -addamt;
585
    x1 += addamt;
586
    x2 += addamt;
587
    y1 -= addamt2;
588
    y2 += addamt2;
589
}
590
if (wobblestate == 11)
591
{
592
    siner -= (speedscale - 1);
593
    animchangetimer += speedscale;
594
    if (animchangetimer >= changespeed && pointcon == 0)
595
    {
596
        reversal = 0;
597
        sprite_index = spr_tenna_point_left;
598
        bounce = 1;
599
        pointcon++;
600
    }
601
    if (animchangetimer >= (changespeed * 2) && pointcon == 1)
602
    {
603
        reversal = 0;
604
        sprite_index = spr_tenna_point_at_screen;
605
        x1 = x - sprite_xoffset;
606
        y1 = y - sprite_yoffset;
607
        x2 = (x - sprite_xoffset) + sprite_width;
608
        y2 = y - sprite_yoffset;
609
        x3 = (x - sprite_xoffset) + sprite_width;
610
        y3 = (y - sprite_yoffset) + sprite_height;
611
        x4 = x - sprite_xoffset;
612
        y4 = (y - sprite_yoffset) + sprite_height;
613
        bounce = 1;
614
        pointcon++;
615
    }
616
    if (animchangetimer >= (changespeed * 3) && pointcon == 2)
617
    {
618
        sprite_index = spr_tenna_salute_b;
619
        reversal = 0;
620
        bounce = 1;
621
        pointcon++;
622
    }
623
    if (animchangetimer >= (changespeed * 4))
624
    {
625
        reversal = 1;
626
        sprite_index = spr_tenna_point_up;
627
        x1 = x - sprite_xoffset;
628
        y1 = y - sprite_yoffset;
629
        x2 = (x - sprite_xoffset) + sprite_width;
630
        y2 = y - sprite_yoffset;
631
        x3 = (x - sprite_xoffset) + sprite_width;
632
        y3 = (y - sprite_yoffset) + sprite_height;
633
        x4 = x - sprite_xoffset;
634
        y4 = (y - sprite_yoffset) + sprite_height;
635
        bounce = 1;
636
        animchangetimer = 0;
637
        pointcon = 0;
638
    }
639
    if (pointcon == 3)
640
        _keep_pivot = true;
641
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
642
    var addamt2 = addamt;
643
    if (reversal == 1)
644
        addamt = -addamt;
645
    x1 += addamt;
646
    x2 += addamt;
647
    y1 -= addamt2;
648
    y2 += addamt2;
649
}
650
if (wobblestate == 12)
651
{
652
    var amt = abs(sin(siner / wobbletime) * wobbleamt);
653
    var amt2 = abs(cos(siner / wobbletime) * wobbleamt);
654
    x1 += amt;
655
    x2 += (amt2 / 2);
656
    y1 += amt;
657
    y2 += amt;
658
}
659
if (wobblestate == 13)
660
{
661
    siner -= (speedscale - 1);
662
    animchangetimer += speedscale;
663
    if (pointcon == 0)
664
    {
665
        sprite_index = spr_tenna_laugh_pose_alt;
666
        x1 = x - sprite_xoffset;
667
        y1 = y - sprite_yoffset;
668
        x2 = (x - sprite_xoffset) + sprite_width;
669
        y2 = y - sprite_yoffset;
670
        x3 = (x - sprite_xoffset) + sprite_width;
671
        y3 = (y - sprite_yoffset) + sprite_height;
672
        x4 = x - sprite_xoffset;
673
        y4 = (y - sprite_yoffset) + sprite_height;
674
        timediff = 0;
675
        pointcon++;
676
        wobbletime = 1;
677
        wobbleamt = 2;
678
    }
679
    if (pointcon == 1)
680
    {
681
        x1 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
682
        x2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
683
        y1 -= (abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt);
684
        y2 += ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) / 2);
685
        timediff = animchangetimer / changespeed;
686
        x1 -= (timediff * 10);
687
        x2 += (timediff * 10);
688
        x4 -= (timediff * 10);
689
        x3 += (timediff * 10);
690
        y1 = (y1 - 10) + (timediff * 20);
691
        y2 = (y2 - 10) + (timediff * 20);
692
        if (animchangetimer >= changespeed)
693
            pointcon++;
694
    }
695
    if (pointcon == 99)
696
    {
697
        timediff = animchangetimer / changespeed;
698
        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { }
(string(timediff));
699
        x1 -= (timediff * 20);
700
        x2 += (timediff * 20);
701
        x4 -= (timediff * 20);
702
        x3 += (timediff * 20);
703
        y1 += (timediff * 10);
704
        y2 += (timediff * 10);
705
        if (animchangetimer >= changespeed)
706
            pointcon++;
707
    }
708
    if (pointcon == 2)
709
    {
710
        reversal = 0;
711
        sprite_index = spr_tenna_hooray_armsup;
712
        bounce = 1;
713
        pointcon++;
714
    }
715
    if (pointcon == 3)
716
    {
717
        if (animchangetimer >= (changespeed * 2))
718
        {
719
            animchangetimer = 0;
720
            pointcon = 0;
721
        }
722
    }
723
    var addamt = abs(sin(siner / wobbletime) * wobbleamt);
724
    var addamt2 = addamt;
725
}
726
if (wobblestate == 14)
727
{
728
    sprite_index = spr_tenna_frightened;
729
    shakex = sin(siner / 4) * sin(siner / 3) * 12;
730
    shakey = -abs(cos(siner / 2) * cos(siner / 1.5) * 28);
731
    drawtype = 0;
732
    siner = floor(siner);
733
    image_index = (sin(siner / 4) * 3) + 3;
734
}
735
if (wobblestate == 15)
736
{
737
    sprite_index = spr_tenna_freakout;
738
    shakex = sin(siner / 4) * sin(siner / 3) * 12;
739
    shakey = -abs(cos(siner / 2) * cos(siner / 1.5) * 28);
740
    drawtype = 0;
741
    siner = floor(siner);
742
    image_index = (sin(siner / 4) * 16) + 48;
743
}
744
if (wobblestate == 16)
745
{
746
    sprite_index = spr_tenna_freakout;
747
    shakex = sin(siner / 4) * sin(siner / 3) * 12;
748
    shakey = -abs(cos(siner / 2) * cos(siner / 1.5) * 28);
749
    drawtype = 0;
750
    siner = floor(siner);
751
    if (frame < 10)
752
        frame = 10;
753
    if ((siner % 40) == 0)
754
    {
755
        frame = floor(random(63)) + 10;
756
        wobbleamt = 3 + floor(random(10));
757
    }
758
    image_index = frame + (sin(siner / 2) * wobbleamt);
759
}
760
if (wobblestate == 17)
761
{
762
    x1 -= ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
763
    x2 -= ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) * reversalsign);
764
    y1 += (abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt);
765
    y2 -= ((abs(sin(siner / wobbletime) * wobbleamt) - wobbleamt) / 2);
766
}
767
if (reversal == 1)
768
{
769
    var remx1 = x1;
770
    var remx2 = x2;
771
    var remx3 = x3;
772
    var remx4 = x4;
773
    x1 = remx2;
774
    x2 = remx1;
775
    x3 = remx4;
776
    x4 = remx3;
777
    if (_keep_pivot)
778
    {
779
        x1 += (sprite_width - sprite_xoffset);
780
        x2 += (sprite_width - sprite_xoffset);
781
        x3 += (sprite_width - sprite_xoffset);
782
        x4 += (sprite_width - sprite_xoffset);
783
    }
784
}
785
if (drawtype == 0)
786
{
787
    if (xscale != 2)
788
    {
789
        x1 = x + ((x1 - x) * (xscale / 2));
790
        x2 = x + ((x2 - x) * (xscale / 2));
791
        x3 = x + ((x3 - x) * (xscale / 2));
792
        x4 = x + ((x4 - x) * (xscale / 2));
793
    }
794
    if (yscale != 2)
795
    {
796
        y1 = y + ((y1 - y) * (yscale / 2));
797
        y2 = y + ((y2 - y) * (yscale / 2));
798
        y3 = y + ((y3 - y) * (yscale / 2));
799
        y4 = y + ((y4 - y) * (yscale / 2));
800
    }
801
    if (shakex != 0)
802
    {
803
        x1 += shakex;
804
        x2 += shakex;
805
        x3 += shakex;
806
        x4 += shakex;
807
    }
808
    if (shakey != 0 && !i_ex(obj_tenna_board4_enemy))
809
    {
810
        y1 += shakey;
811
        y2 += shakey;
812
        y3 += shakey;
813
        y4 += shakey;
814
    }
815
    if (outline)
816
    {
817
        d3d_set_fog(true, c_black, 0, 1);
818
        draw_sprite_pos(sprite_index, image_index, x1 - 2, y1, x2 - 2, y2, x3 - 2, y3, x4 - 2, y4, 1);
819
        draw_sprite_pos(sprite_index, image_index, x1, y1 - 2, x2, y2 - 2, x3, y3 - 2, x4, y4 - 2, 1);
820
        draw_sprite_pos(sprite_index, image_index, x1, y1 + 2, x2, y2 + 2, x3, y3 + 2, x4, y4 + 2, 1);
821
        draw_sprite_pos(sprite_index, image_index, x1 + 2, y1, x2 + 2, y2, x3 + 2, y3, x4 + 2, y4, 1);
822
        d3d_set_fog(false, c_black, 0, 0);
823
    }
824
    if (dropshadow)
825
    {
826
        d3d_set_fog(true, c_black, 0, 1);
827
        draw_sprite_pos(sprite_index, image_index, x1 + dropdist, y1 + dropdist, x2 + dropdist, y2 + dropdist, x3 + dropdist, y3 + dropdist, x4 + dropdist, y4 + dropdist, 1);
828
        d3d_set_fog(false, c_black, 0, 0);
829
    }
830
    if (i_ex(obj_shadowman_sharpshoot_target) && threepartmode == true && !i_ex(obj_tenna_enemy))
831
    {
832
        var _color = 16777215;
833
        draw_sprite_ext(spr_tenna_point_top2, image_index, x - 6, y - 82, 2, 2, nose_rotation * -0.2, _color, 1);
834
        draw_sprite_ext(spr_tenna_point_pants, image_index, x - 4, y - 82, 2, 2, 0, _color, 1);
835
        draw_sprite_ext(spr_tenna_point_top, image_index, x - 4, y - 82, 2, 2, nose_rotation * -0.2, _color, 1);
836
        draw_sprite_ext(spr_tenna_point_up_nose, image_index, x + 4 + lengthdir_x(86, 90 + (nose_rotation * -0.2)), (y - 82) + lengthdir_y(86, 90 + (nose_rotation * -0.2)), 2, 2, nose_rotation * -1, _color, 1);
837
        if (hitflash > 0)
838
        {
839
            d3d_set_fog(true, c_white, 0, 0);
840
            draw_sprite_ext(spr_tenna_point_up_headonly, image_index, x - 4, y - 82, 2, 2, nose_rotation * -0.2, _color, 1);
841
            d3d_set_fog(false, c_white, 0, 0);
842
            hitflash--;
843
        }
844
        nose_sintimer++;
845
        nose_magnitude *= 0.85;
846
        nose_rotation = sin(nose_sintimer / 4) * nose_magnitude;
847
        flashsiner++;
848
    }
849
    else if ((i_ex(obj_tenna_enemy) && obj_tenna_enemy.minigametransition_con == 0) || (i_ex(obj_tvturnoff_manager) && global.encounterno != 135))
850
    {
851
        var _color;
852
        if (i_ex(obj_shadowman_sharpshoot_target))
853
        {
854
            var _b = (obj_shadowman_sharpshoot_target.tennahp + 0.3) / obj_shadowman_sharpshoot_target.tennahpmax;
855
            if (_b < 0.2)
856
                _b = 0.2;
857
            _color = merge_color(c_red, c_white, _b);
858
        }
859
        else
860
        {
861
            _color = 16777215;
862
        }
863
        if (!i_ex(obj_lightemup_controller) || (lightemupcon == 0 || lightemupcon == 1 || lightemupcon == 2))
864
        {
865
            animsiner++;
866
            var bx = sin(animsiner / 6) * 5;
867
            var by = -abs(cos(animsiner / 4)) * 5;
868
            var armx = sin(animsiner / 6) * 9;
869
            var army = cos(animsiner / 6) * 6;
870
            var headx = sin(animsiner / 6) * 8;
871
            var heady = (sin(animsiner / 6) * 6) + 4;
872
            var legx = sin((animsiner + 4) / 6) * 5;
873
            var legy = cos(animsiner / 6) * 2;
874
            animsinerb++;
875
            var image = animsiner / 6;
876
            var loopimage = 1.5 + (sin(image) * 1.5);
877
            var loopimage1 = 1 + (sin(image) * 1);
878
            var tailimage = image;
879
            armshake *= -1;
880
            armshakesiner++;
881
            var chargingup = 1;
882
            var armshakevalue = clamp((sin((armshakesiner / 18) - 1) * 1.5) - 1, 0, 4);
883
            var armshakey = armshakevalue * armshake;
884
            var headimage = 2;
885
            if (chargingup == 0)
886
            {
887
                armshakey = 0;
888
                armshakevalue = 0;
889
            }
890
            draw_monster_body_part_ext(spr_tenna_battle_leg_l, image, x - legx, y + legy, image_xscale, image_yscale, image_angle, _color, image_alpha);
891
            draw_monster_body_part_ext(spr_tenna_battle_leg_r, image, x + legx, y - (legy / 4), image_xscale, image_yscale, image_angle, _color, image_alpha);
892
            draw_monster_body_part_ext(spr_tenna_battle_tails, tailimage, (x + (bx / 2)) - 4, y + by, image_xscale, image_yscale, image_angle, _color, image_alpha);
893
            draw_monster_body_part_ext(spr_tenna_battle_arm_back, 3 - loopimage, ((x + bx) - (armx * 1.5)) + 12, (y + by) - army, image_xscale, image_yscale, image_angle, _color, image_alpha);
894
            draw_monster_body_part_ext(spr_tenna_battle_torso, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, _color, image_alpha);
895
            draw_monster_body_part_ext(spr_tenna_battle_tie, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, _color, image_alpha);
896
            draw_monster_body_part_ext(spr_tenna_battle_face, headimage - (armshakevalue * 5), ((x + bx) - headx) + 2 + (armshakey / 2), (y + by + heady) - 2 - (armshakey / 2), image_xscale, image_yscale, image_angle, _color, image_alpha);
897
            draw_monster_body_part_ext(spr_tenna_battle_arm_front, loopimage, ((x + bx) - armx) + armshakey, y + by + army + armshakey, image_xscale, image_yscale, image_angle, _color, image_alpha);
898
            if (i_ex(obj_shadowman_sharpshoot_target))
899
            {
900
                obj_shadowman_sharpshoot_target.x = ((x + bx) - headx) + 2 + (armshakey / 2);
901
                obj_shadowman_sharpshoot_target.y = y + by + army + armshakey;
902
            }
903
            if (hitflash > 0)
904
            {
905
                d3d_set_fog(true, c_white, 0, 0);
906
                draw_monster_body_part_ext(spr_tenna_battle_face, headimage - (armshakevalue * 5), ((x + bx) - headx) + 2 + (armshakey / 2), (y + by + heady) - 2 - (armshakey / 2), image_xscale, image_yscale, 0 + (nose_rotation * -0.2), image_blend, image_alpha);
907
                d3d_set_fog(false, c_white, 0, 0);
908
                hitflash--;
909
            }
910
            if (pinkflash > 0)
911
            {
912
                d3d_set_fog(true, make_color_rgb(248, 173, 227), 0, 0);
913
                draw_monster_body_part_ext(spr_tenna_battle_leg_l, image, x - legx, y + legy, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
914
                draw_monster_body_part_ext(spr_tenna_battle_leg_r, image, x + legx, y - (legy / 4), image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
915
                draw_monster_body_part_ext(spr_tenna_battle_tails, tailimage, (x + (bx / 2)) - 4, y + by, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
916
                draw_monster_body_part_ext(spr_tenna_battle_arm_back, 3 - loopimage, ((x + bx) - (armx * 1.5)) + 12, (y + by) - army, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
917
                draw_monster_body_part_ext(spr_tenna_battle_torso, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
918
                draw_monster_body_part_ext(spr_tenna_battle_tie, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
919
                draw_monster_body_part_ext(spr_tenna_battle_face, headimage - (armshakevalue * 5), ((x + bx) - headx) + 2 + (armshakey / 2), (y + by + heady) - 2 - (armshakey / 2), image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
920
                draw_monster_body_part_ext(spr_tenna_battle_arm_front, loopimage, ((x + bx) - armx) + armshakey, y + by + army + armshakey, image_xscale, image_yscale, image_angle, _color, pinkflash / 30);
921
                d3d_set_fog(false, make_color_rgb(248, 173, 227), 0, 0);
922
                pinkflash -= 2;
923
            }
924
        }
925
        if (i_ex(obj_lightemup_controller) && obj_shadowman_sharpshoot_target.type == 4)
926
        {
927
            bullet_timer++;
928
            var pattern = 5;
929
            var bulletnum = 3;
930
            var bulletthick = 0;
931
            var _geteasierifhaventhadchannelchange = 0;
932
            create_defeat_tenna_text_timer++;
933
            if (create_defeat_tenna_text_timer == 1)
934
            {
935
                with (obj_tenna_enemy)
936
                    stopshoot = 1;
937
            }
938
            if (create_defeat_tenna_text_timer == 43)
939
            {
940
                minigametext = instance_create_depth(x, y - 150, depth - 9999999, obj_tenna_enemy_minigametext);
941
                minigametext.mystring = stringsetloc(
DEFEAT TENNA!
"DEFEAT TENNA!", "obj_screen_channel_change_slash_Other_12_gml_122_0"
);
942
                minigametext.lightemup = 1;
943
            }
944
            pacetimer++;
945
            geteasiertimer++;
946
            if (geteasiertimer > 300)
947
                geteasiertimer = 300;
948
            var progress = obj_shadowman_sharpshoot_target.tennahp / obj_shadowman_sharpshoot_target.tennahpmax;
949
            if (lightemupcon == 0)
950
            {
951
                if (geteasiertimer > 30)
952
                    _geteasierifhaventhadchannelchange = round(lerp(0, 70, (geteasiertimer - 30) / 300));
953
                if (_geteasierifhaventhadchannelchange > 100)
954
                    _geteasierifhaventhadchannelchange = 100;
955
                _rate = round(lerp(40 + _geteasierifhaventhadchannelchange, 82 + _geteasierifhaventhadchannelchange, progress));
956
                lightemuptargetx = xstart + choose(-50 + random(30), 50 + random(30));
957
                lightemuptargety = (ystart - 40) + random(70);
958
                lightemuptimer++;
959
                if (lightemuptimer == 60)
960
                    lightemupcon = 1;
961
            }
962
            if (progress < 1.01)
963
            {
964
                pattern = 5;
965
                bulletnum = 3;
966
                bulletthick = 0;
967
            }
968
            if (progress <= 0.92)
969
            {
970
                pattern = 5;
971
                bulletnum = 4;
972
                bulletthick = 0;
973
            }
974
            if (progress <= 0.83)
975
            {
976
                pattern = 5;
977
                bulletnum = 3;
978
                bulletthick = 1;
979
            }
980
            if (progress <= 0.74)
981
            {
982
                pattern = 5;
983
                bulletnum = 3;
984
                bulletthick = 1;
985
                if (bullet_count > 1)
986
                    pattern = 4;
987
            }
988
            if (progress <= 0.65)
989
            {
990
                pattern = 5;
991
                bulletnum = 5;
992
                bulletthick = 0;
993
            }
994
            if (progress <= 0.56)
995
            {
996
                pattern = 5;
997
                bulletnum = 5;
998
                bulletthick = 0;
999
            }
1000
            if (progress <= 0.49)
1001
            {
1002
                pattern = 6;
1003
                bulletnum = 3;
1004
                bulletthick = 0;
1005
            }
1006
            if (progress <= 0.41)
1007
            {
1008
                pattern = 6;
1009
                bulletnum = 3;
1010
                bulletthick = 0;
1011
            }
1012
            if (progress <= 0.33)
1013
            {
1014
                pattern = choose(4, 5, 6);
1015
                if (pattern == 4)
1016
                    bulletnum = 1;
1017
                if (pattern == 5)
1018
                    bulletnum = 5;
1019
                if (pattern == 6)
1020
                    bulletnum = 4;
1021
                bulletthick = 0;
1022
            }
1023
            if (progress <= 0.2)
1024
            {
1025
                pattern = 7;
1026
                bulletnum = 6;
1027
                bulletthick = 0;
1028
            }
1029
            if (progress <= 0.1)
1030
            {
1031
                pattern = 8;
1032
                bulletnum = 8;
1033
                bulletthick = 0;
1034
            }
1035
            progress = obj_shadowman_sharpshoot_target.tennahp / obj_shadowman_sharpshoot_target.tennahpmax;
1036
            var _jumpspeed = round(_rate / 5);
1037
            var _movespeed = round(_rate / 10);
1038
            var _waitspeed = round(_rate / 10);
1039
            var _graspspeed = 2 + round(_rate / 4);
1040
            if (lightemupcon == 3 && lightemuptimer < _jumpspeed)
1041
            {
1042
                draw_sprite_ext(spr_tenna_attack, 0, x - 4, y + 30, 2, 2, 0, _color, 1);
1043
                if (hitflash > 0)
1044
                {
1045
                    d3d_set_fog(true, c_white, 0, 0);
1046
                    draw_sprite_ext(spr_tenna_attack_justhead, 0, x - 4, y + 30, 2, 2, 0, _color, 1);
1047
                    d3d_set_fog(false, c_white, 0, 0);
1048
                    hitflash--;
1049
                }
1050
            }
1051
            if (lightemupcon == 3 && lightemuptimer >= _jumpspeed)
1052
            {
1053
                var _index = lightemuptimer - _jumpspeed;
1054
                if (_index >= 3)
1055
                    _index = 3;
1056
                draw_sprite_ext(spr_tenna_attack_clapvfx, _index, x - 4, y + 30, 2, 2, 0, _color, 1);
1057
                if (hitflash > 0)
1058
                {
1059
                    d3d_set_fog(true, c_white, 0, 0);
1060
                    draw_sprite_ext(spr_tenna_attack_justhead, 1, x - 4, y + 30, 2, 2, 0, _color, 1);
1061
                    d3d_set_fog(false, c_white, 0, 0);
1062
                    hitflash--;
1063
                }
1064
            }
1065
            if (lightemupcon == 4 || lightemupcon == 5)
1066
            {
1067
                var _yy = y - 130;
1068
                var _xshake = 0;
1069
                shaketimer++;
1070
                if (shaketimer == 2)
1071
                    _xshake = 6;
1072
                if (shaketimer == 3)
1073
                    _xshake = -5;
1074
                if (shaketimer == 4)
1075
                    _xshake = 4;
1076
                if (shaketimer == 5)
1077
                    _xshake = -3;
1078
                if (shaketimer == 6)
1079
                    _xshake = 2;
1080
                if (shaketimer == 7)
1081
                    _xshake = -1;
1082
                if (lightemuptimer < 51)
1083
                {
1084
                    draw_sprite_ext(spr_tenna_hurt, 0, (x - 4) + _xshake, _yy + 124, 2, 2, 0, _color, 1);
1085
                }
1086
                else
1087
                {
1088
                    if (shaketimer < 14)
1089
                        draw_sprite_ext(spr_tenna_grasp_zoom_static, lightemuptimer / 2, (x - 4) + _xshake, _yy - 24, 2, 2, 0, c_white, 1);
1090
                    else
1091
                        draw_sprite_ext(spr_tenna_grasp_zoom, lightemuptimer / 2, (x - 4) + _xshake, _yy - 24, 2, 2, 0, c_white, 1);
1092
                    if (hitflash > 0)
1093
                    {
1094
                        d3d_set_fog(true, c_white, 0, 0);
1095
                        draw_sprite_ext(spr_tenna_grasp_headonly, 1, x + _xshake, (_yy + 154) - 24, 2, 2, 0, c_white, 1);
1096
                        d3d_set_fog(false, c_white, 0, 0);
1097
                        hitflash--;
1098
                    }
1099
                }
1100
            }
1101
            if (lightemupcon == 1)
1102
            {
1103
                lightemuptimer++;
1104
                if (obj_shadowman_sharpshoot_target.tennahp < 1)
1105
                {
1106
                    lightemup_endingcon = 1;
1107
                    x = lerp(x, xstart - 90, lightemuptimer / _movespeed);
1108
                    y = lerp(y, ystart + 0, lightemuptimer / _movespeed);
1109
                }
1110
                else if (_waitspeed <= 4)
1111
                {
1112
                    x = lerp(x, lightemuptargetx, lightemuptimer / _movespeed);
1113
                    y = lerp(y, lightemuptargety, lightemuptimer / _movespeed);
1114
                }
1115
                else
1116
                {
1117
                    x = lerp(x, lightemuptargetx, 0.2);
1118
                    y = lerp(y, lightemuptargety, 0.2);
1119
                }
1120
                if (lightemuptimer >= _movespeed)
1121
                {
1122
                    lightemuptimer = 0;
1123
                    lightemupcon = 2;
1124
                }
1125
            }
1126
            if (lightemupcon == 2)
1127
            {
1128
                lightemuptimer++;
1129
                if (obj_lightemup_controller.transitioninit == 1)
1130
                {
1131
                    lightemuptimer = 0;
1132
                    if (lightemup_endingcon == 1)
1133
                    {
1134
                        with (obj_tenna_lightemup_bullet)
1135
                            vanish = 1;
1136
                        with (obj_afterimage)
1137
                            instance_destroy();
1138
                        with (obj_afterimage_grow)
1139
                            instance_destroy();
1140
                        with (obj_shadowman_sharpshoot_heart)
1141
                            instance_destroy();
1142
                        lightemupcon = 5;
1143
                        snd_stop(snd_tv_static);
1144
                        with (obj_lightemup_controller)
1145
                            shooting_enabled = false;
1146
                        shaketimer = 1;
1147
                    }
1148
                }
1149
                if (bullet_timer > (_rate - _jumpspeed))
1150
                {
1151
                    if (ligthemupmovefullcount < 3)
1152
                        ligthemupmovefullcount++;
1153
                    else
1154
                        ligthemupmovefullcount = 0;
1155
                    lightemupmovecount = 0;
1156
                    lightemupcon = 3;
1157
                    lightemuptimer = 0;
1158
                    startjump = false;
1159
                    snd_play(snd_jump);
1160
                }
1161
                else if (lightemuptimer == _waitspeed)
1162
                {
1163
                    lightemuptargetx = xstart + choose(-70 + random(70), 50 + random(30));
1164
                    lightemuptargety = (ystart - 45) + random(55);
1165
                    if ((bullet_timer + _movespeed + _waitspeed) > (_rate - _jumpspeed) || _waitspeed <= 4)
1166
                    {
1167
                        lightemuptargetx = xstart + 80;
1168
                        lightemuptargety = ystart;
1169
                    }
1170
                    lightemuptimer = 0;
1171
                    lightemupcon = 1;
1172
                    lightemupmovecount++;
1173
                }
1174
            }
1175
            if (lightemupcon == 3)
1176
            {
1177
                lightemuptimer++;
1178
                if (lightemuptimer <= _jumpspeed)
1179
                {
1180
                    var ydestination = lerp(-200, 180, lightemuptimer / _jumpspeed);
1181
                    x = lerp(lightemuptargetx, 436, lightemuptimer / _jumpspeed);
1182
                    y = lerp(ystart, ydestination, lightemuptimer / _jumpspeed);
1183
                }
1184
                if (lightemuptimer == (_jumpspeed - 4))
1185
                    snd_play(snd_whip_hard);
1186
                if (lightemuptimer == _jumpspeed)
1187
                {
1188
                    y = 127;
1189
                    
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
1190
                    repeat (10)
1191
                    {
1192
                        var afterimage = 
scr_afterimage
scr_afterimage

function
scr_afterimage()
{ afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
();
1193
                        afterimage.x = x - 24;
1194
                        afterimage.y = y + 30;
1195
                        afterimage.sprite_index = spr_rabbick_dustorb;
1196
                        afterimage.direction = random(360);
1197
                        afterimage.image_alpha = 0.8;
1198
                        afterimage.speed = 3 + random(5);
1199
                        afterimage.image_xscale = 1.5;
1200
                        afterimage.image_yscale = 1.5;
1201
                        afterimage.friction = 0.334;
1202
                        afterimage.depth = depth - 1000;
1203
                    }
1204
                    if (pattern == 4)
1205
                    {
1206
                        var i = 0;
1207
                        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1208
                        var timevalue = 140 + floor(random(20)) + (i * 15);
1209
                        bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1210
                        
scr_lerpvar_instance
scr_lerpvar_instance

function
scr_lerpvar_instance()
{ __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; } function scr_lerp_var_instance() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} function scr_lerp_instance_var() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
(bul, "x", bul.x, camerax() + 140, timevalue, 0, "out");
1211
                        bul.damagetimer = timevalue;
1212
                        bul.vspeed = (1 + random(3)) * choose(-1, 1);
1213
                        bul.gravity = -bul.vspeed / (timevalue / 2);
1214
                        bul.sprite_index = spr_ball_collision_full_3xscale;
1215
                        bul.hp = 13;
1216
                        with (bul)
1217
                            event_user(1);
1218
                        i++;
1219
                        bullet_count = 0;
1220
                    }
1221
                    if (pattern == 5)
1222
                    {
1223
                        var i = 0;
1224
                        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1225
                        repeat (bulletnum)
1226
                        {
1227
                            bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1228
                            bul.specialmovement = 1;
1229
                            bul.specialmovementwaittime = 6 + (i * 2) + random(6);
1230
                            bul.specialmovementattacktime = 40 + (i * 4) + random(15);
1231
                            bul.image_xscale = 1;
1232
                            bul.image_yscale = 1;
1233
                            bul.hp = 3;
1234
                            i++;
1235
                        }
1236
                        if (bulletthick == 1)
1237
                        {
1238
                            bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1239
                            bul.specialmovement = 1;
1240
                            bul.specialmovementexpansiontime = 10 + random(4);
1241
                            bul.specialmovementwaittime = 2 + (i * 2) + random(6);
1242
                            bul.specialmovementattacktime = 40 + (i * 4) + random(15);
1243
                            bul.sprite_index = spr_ball_collision_full2;
1244
                            bul.hp = 6;
1245
                            i++;
1246
                        }
1247
                        bullet_count++;
1248
                    }
1249
                    if (pattern == 6)
1250
                    {
1251
                        var i = 0;
1252
                        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1253
                        repeat (bulletnum)
1254
                        {
1255
                            bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1256
                            bul.specialmovement = 1;
1257
                            bul.specialmovementexpansiontime = 10 + random(4);
1258
                            bul.specialmovementwaittime = 2 + (i * 2) + random(6);
1259
                            bul.specialmovementattacktime = 40 + (i * 4) + random(15);
1260
                            bul.sprite_index = spr_ball_collision_full2;
1261
                            bul.hp = 6;
1262
                            i++;
1263
                        }
1264
                    }
1265
                    if (pattern == 7)
1266
                    {
1267
                        var i = 0;
1268
                        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1269
                        repeat (bulletnum)
1270
                        {
1271
                            if (instance_number(obj_tenna_lightemup_bullet) < 10)
1272
                            {
1273
                                bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1274
                                bul.specialmovement = 1;
1275
                                bul.specialmovementwaittime = 0 + (i * 1) + random(1);
1276
                                bul.specialmovementattacktime = 20 + (i * 4) + random(4);
1277
                                bul.hp = 1;
1278
                                bul.spreadtype = 1;
1279
                                i++;
1280
                            }
1281
                        }
1282
                        bullet_count++;
1283
                    }
1284
                    if (pattern == 8)
1285
                    {
1286
                        var i = 0;
1287
                        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1288
                        repeat (bulletnum)
1289
                        {
1290
                            if (instance_number(obj_tenna_lightemup_bullet) < 14)
1291
                            {
1292
                                bul = instance_create_depth(x - 24, y + 30, depth + 1, obj_tenna_lightemup_bullet);
1293
                                bul.specialmovement = 1;
1294
                                bul.specialmovementwaittime = 0 + (i * 1) + random(1);
1295
                                bul.specialmovementattacktime = 20 + (i * 4) + random(4);
1296
                                bul.hp = 1;
1297
                                bul.spreadtype = 1;
1298
                                i++;
1299
                            }
1300
                        }
1301
                        bullet_count++;
1302
                    }
1303
                    bullet_timer = 0;
1304
                }
1305
                if (lightemuptimer >= (_jumpspeed + 10))
1306
                    gravity = lerp(10, 1, _jumpspeed / 21);
1307
                if (lightemuptimer >= (_jumpspeed + 14) && y >= (ystart - 40))
1308
                {
1309
                    if (geteasiertimer > 60)
1310
                        _geteasierifhaventhadchannelchange = round(lerp(0, 70, (geteasiertimer - 60) / 600));
1311
                    if (_geteasierifhaventhadchannelchange > 100)
1312
                        _geteasierifhaventhadchannelchange = 100;
1313
                    _rate = round(lerp(35 + _geteasierifhaventhadchannelchange, 82 + _geteasierifhaventhadchannelchange, progress));
1314
                    
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
1315
                    snd_play(snd_impact);
1316
                    y = ystart;
1317
                    gravity = 0;
1318
                    vspeed = 0;
1319
                    lightemuptimer = 0;
1320
                    lightemupcon = 2;
1321
                    if (obj_shadowman_sharpshoot_target.tennahp < 1)
1322
                        lightemupcon = 1;
1323
                }
1324
            }
1325
            if (lightemupcon == 4)
1326
            {
1327
                lightemuptimer++;
1328
                if (lightemuptimer == 1)
1329
                    
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
1330
                if (lightemuptimer == 2 && !audio_is_playing(snd_tv_static))
1331
                    snd_play(snd_tv_static);
1332
                if (lightemuptimer == round(_graspspeed / 2))
1333
                {
1334
                    obj_lightemup_controller.transitioninit = 2;
1335
                    obj_lightemup_controller.extra_timer = 0;
1336
                }
1337
                if (lightemuptimer >= _graspspeed)
1338
                {
1339
                    snd_stop(snd_tv_static);
1340
                    bullet_timer = 0;
1341
                    shaketimer = 0;
1342
                    pacetimer = 0;
1343
                    lightemuptimer = 0;
1344
                    lightemupcon = 2;
1345
                }
1346
            }
1347
            if (lightemupcon == 5)
1348
            {
1349
                lightemuptimer++;
1350
                var ending_length = 300;
1351
                with (obj_tenna_enemy)
1352
                    staticfadetimermax = ending_length - 100;
1353
                if (lightemuptimer == 1)
1354
                {
1355
                    snd_stop(snd_tv_static);
1356
                    if (!audio_is_playing(snd_tv_static))
1357
                        mus_volume(global.batmusic[1], 0, 0);
1358
                    snd_play(snd_explosion);
1359
                    
scr_fadeout
scr_fadeout

function
scr_fadeout(arg0)
{ __fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout); __fadeouter.fadespeed = 1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(20);
1360
                    with (obj_fadeout)
1361
                    {
1362
                        image_blend = c_white;
1363
                        depth = obj_tenna_minigame_ui.depth - 100;
1364
                    }
1365
                    with (obj_tenna_enemy_bg)
1366
                    {
1367
                        speedup = 0;
1368
                        slowdown = 1;
1369
                    }
1370
                }
1371
                if (lightemuptimer == 120)
1372
                {
1373
                    
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(60);
1374
                    with (obj_fadein)
1375
                    {
1376
                        image_blend = c_white;
1377
                        depth = obj_tenna_minigame_ui.depth - 100;
1378
                    }
1379
                }
1380
                if (lightemuptimer == 121)
1381
                {
1382
                    with (obj_fadeout)
1383
                        instance_destroy();
1384
                }
1385
                if (lightemuptimer == 240)
1386
                {
1387
                    snd_play_x(snd_noise, 1.8, 1);
1388
                    obj_lightemup_controller.transitioninit = 2;
1389
                    obj_lightemup_controller.extra_timer = 9;
1390
                    shaketimer = 1;
1391
                }
1392
                changechanneltimermax = lerp(65, 3, (lightemuptimer - 240) / 300);
1393
                if (changechanneltimermax < 3)
1394
                    changechanneltimermax = 3;
1395
                if (lightemuptimer >= 240 && !i_ex(obj_tvturnoff_manager))
1396
                {
1397
                    changechanneltimer++;
1398
                    if (changechanneltimer >= changechanneltimermax)
1399
                    {
1400
                        snd_play_x(snd_noise, 1.8, 1 + pitchchange);
1401
                        obj_lightemup_controller.transitioninit = 2;
1402
                        obj_lightemup_controller.extra_timer = 9;
1403
                        shaketimer = 1;
1404
                        changechanneltimer = 0;
1405
                        if (changechanneltimermax < 4)
1406
                        {
1407
                            if (lightemuptimer < 1000)
1408
                                lightemuptimer = 1000;
1409
                        }
1410
                        pitchchange += 0.02;
1411
                    }
1412
                }
1413
                if (lightemuptimer == 1090)
1414
                {
1415
                    snd_stop(snd_tv_static);
1416
                    inst = instance_create(x, y, obj_tvturnoff_manager);
1417
                    inst.depth = obj_battlecontroller.depth - 100;
1418
                    inst.tennaending = true;
1419
                    inst.kind = 1;
1420
                }
1421
            }
1422
        }
1423
    }
1424
    else
1425
    {
1426
        draw_sprite_pos(sprite_index, image_index, x1, y1, x2, y2, x3, y3, x4, y4, 1);
1427
    }
1428
    if (mad)
1429
    {
1430
        flash = true;
1431
        image_blend = c_red;
1432
    }
1433
    if (flash)
1434
    {
1435
        flashsiner++;
1436
        d3d_set_fog(true, image_blend, 0, 1);
1437
        draw_sprite_pos(sprite_index, image_index, x1, y1, x2, y2, x3, y3, x4, y4, (-cos(flashsiner / 5) * 0.4) + 0.6);
1438
        d3d_set_fog(false, c_black, 0, 0);
1439
    }
1440
}
1441
if (drawtype == 1)
1442
{
1443
    if (dropshadow)
1444
        draw_sprite_ext(sprite_index, image_index, x + dropdist, y + dropdist, image_xscale, image_yscale, image_angle, c_black, image_alpha);
1445
    draw_self();
1446
    if (flash)
1447
    {
1448
        flashsiner++;
1449
        d3d_set_fog(true, image_blend, 0, 1);
1450
        draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, (-cos(flashsiner / 5) * 0.4) + 0.6);
1451
        d3d_set_fog(false, c_black, 0, 0);
1452
    }
1453
    if (darkenalpha > 0)
1454
    {
1455
        d3d_set_fog(true, c_black, 0, 1);
1456
        draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_black, darkenalpha);
1457
        d3d_set_fog(false, c_black, 0, 0);
1458
        darkenalpha -= 0.01;
1459
    }
1460
}
1461
if (drawtype == 2)
1462
{
1463
    shtimer++;
1464
    draw_sprite_ext(spr_tenna_laugh_pose_segmented_leftarm, 0, x + ((sin(shtimer / rate) * 4) + 6), y + (cos(shtimer / rate) * 4), 2, 2, 0, c_white, 1);
1465
    draw_sprite_ext(spr_tenna_laugh_pose_segmented_body, 0, x, y, 2, 2 + (sin(shtimer / rate) * 0.1), 0, c_white, 1);
1466
    draw_sprite_ext(spr_tenna_laugh_pose_segmented_rightarm, 0, x - (sin(shtimer / rate) * 4), y - (-cos(shtimer / rate) * 4), 2, 2, 0, c_white, 1);
1467
}
1468
if (drawtype == 3)
1469
{
1470
    if (rosecon == 1)
1471
    {
1472
        rosetimer++;
1473
        if (rosetimer == 1)
1474
        {
1475
            image_speed = 0;
1476
            image_index = 0;
1477
            rosetennasprite = 3002;
1478
            
scr_lerpvar
scr_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, sign(image_xscale) * 2, 30, -1, "out");
1479
            
scr_lerpvar
scr_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, 2, 30, -1, "out");
1480
        }
1481
        if (rosetimer == 12)
1482
        {
1483
            rosetennasprite = 1571;
1484
            image_index = 0;
1485
        }
1486
        if (rosetimer >= 16)
1487
            image_index = 1;
1488
        if (rosetimer >= 19)
1489
            image_index = 2;
1490
        if (rosetimer >= 22)
1491
            image_index = 3;
1492
        if (rosetimer == 29)
1493
        {
1494
            image_index = 3;
1495
            image_speed = 0;
1496
            sprite_index = rosetennasprite;
1497
            drawtype = 0;
1498
            wobblestate = 7;
1499
            wobbletime = 2;
1500
            wobbleamt = 6;
1501
            siner = 0;
1502
            timer = 0;
1503
            rosecon = 2;
1504
        }
1505
    }
1506
    draw_sprite_ext(rosetennasprite, image_index, x, y, image_xscale, image_yscale, 0, c_white, 1);
1507
}
1508
if (nose_bloom)
1509
{
1510
    var blossom_x_offset = (image_xscale < 0) ? -36 : 36;
1511
    draw_sprite_ext(spr_tenna_blossom, nose_bloom_index, x1 + blossom_x_offset, y1 + 36, nose_bloom_scale_x, nose_bloom_scale_y, image_angle, c_white, image_alpha);
1512
}
1513
if (communication > 0)
1514
{
1515
    if (communication == 1)
1516
    {
1517
        communicationtimer = 0;
1518
        communication = 2;
1519
    }
1520
    if (communication == 2)
1521
    {
1522
        var antennax1 = x + (6 * xscale);
1523
        var antennay1 = y - (120 * yscale);
1524
        var antennax2 = x + (24 * xscale);
1525
        var antennay2 = y - (116 * yscale);
1526
        if (sprite_index == spr_tenna_communication)
1527
        {
1528
            if (image_index >= 1)
1529
            {
1530
                antennax1 = x + (30 * xscale);
1531
                antennay1 = y - (95 * yscale);
1532
                antennax2 = x + (48 * xscale);
1533
                antennay2 = y - (90 * yscale);
1534
            }
1535
        }
1536
        if (sprite_index == spr_tenna_hurt)
1537
        {
1538
            antennax1 = x + (20 * xscale);
1539
            antennay1 = y - (105 * yscale);
1540
            antennax2 = x + (42 * xscale);
1541
            antennay2 = y - (108 * yscale);
1542
        }
1543
        if (sprite_index == spr_tenna_sad_turned_b)
1544
        {
1545
            antennax1 = x + (1 * xscale);
1546
            antennay1 = y - (100 * yscale);
1547
            antennax2 = x - (20 * xscale);
1548
            antennay2 = y - (102 * yscale);
1549
        }
1550
        if (sprite_index == spr_tenna_faceaway)
1551
        {
1552
            antennax1 = x - 22;
1553
            antennay1 = y - 242;
1554
            antennax2 = x + 20;
1555
            antennay2 = y - 242;
1556
        }
1557
        if ((communicationtimer % 90) == 0)
1558
        {
1559
            snd_play_x(snd_sonar, 0.8, 0.8);
1560
            snd_play_x(snd_sonar, 0.8, 0.8 + random(0.05));
1561
            for (var i = 0; i < 3; i++)
1562
            {
1563
                var _x = antennax1;
1564
                var _y = antennay1;
1565
                repeat (2)
1566
                {
1567
                    var lightningmarker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(_x, _y, spr_shutta_lightning);
1568
                    lightningmarker.image_speed = 0.5;
1569
                    lightningmarker.image_alpha = 0;
1570
                    lightningmarker.depth = depth - 1;
1571
                    scr_lerp_var_instance(lightningmarker, "image_alpha", 2, 0, 18 + random(6));
1572
                    with (lightningmarker)
1573
                    {
1574
                        image_xscale = 0.5;
1575
                        image_yscale = 0.5;
1576
                        direction = 60 + (i * 30) + random_range(-10, 10);
1577
                        image_angle = direction;
1578
                        speed = 3 + random(1);
1579
                        friction = 0.2;
1580
                        
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 20);
1581
                        image_blend = c_yellow;
1582
                    }
1583
                    _x = antennax2;
1584
                    _y = antennay2;
1585
                }
1586
            }
1587
        }
1588
        communicationtimer++;
1589
    }
1590
}
1591
var lineshow = 0;
1592
if (lineshow)
1593
{
1594
    draw_line(x1, y1, x2, y2);
1595
    draw_line(x2, y2, x3, y3);
1596
    draw_line(x1, y1, x4, y4);
1597
    draw_line(x4, y4, x3, y3);
1598
    draw_circle(x, y, 0.5, 1);
1599
    draw_text(camerax(), (cameray() + 480) - 15, "wobblestate=" + string(wobblestate));
1600
}
1601
if (golden_mode)
1602
    pal_swap_reset();