Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_transition_Draw_0

(view raw script w/o annotations or w/e)
1
index += 1;
2
if (rect_draw == 1)
3
{
4
    rs += 1;
5
    for (var i = 0; i < rect_amount; i += 1)
6
    {
7
        rsize[i] += 0.25;
8
        if (quick_mode == 1)
9
            rsize[i] += 0.25;
10
        if (rsize[i] > 0)
11
        {
12
            r_darkest = 5 - (rsize[i] * 0.8);
13
            if (rs < 20)
14
                r_darkest *= (rs / 20);
15
            if (r_darkest < 0)
16
                r_darkest = 0;
17
            if (r_darkest > 1)
18
                r_darkest = 1;
19
            r_color = merge_color(c_black, c_white, r_darkest);
20
            draw_sprite_ext(spr_doorblack, 0, rx + camerax(), ry + cameray(), rw * rsize[i], rh * rsize[i], rsize[i], r_color, 1);
21
        }
22
    }
23
}
24
if (con == 8)
25
{
26
    mus_volume(global.currentsong[1], 0, 30);
27
    with (obj_mainchara)
28
        cutscene = 1;
29
    with (obj_kris_headobj)
30
    {
31
        follow = 0;
32
        depth = obj_dw_transition.depth - 10;
33
    }
34
    sus_draw = 1;
35
    sus_sprite = spr_susieu;
36
    sus_index = 0;
37
    kris_sprite = spr_krisu;
38
    kris_index = 0;
39
    sus_v = 1.2;
40
    if (quick_mode == 1)
41
        sus_v = 2;
42
    timer = 0;
43
    con = 9;
44
    doorblack = 0;
45
}
46
if (con == 9)
47
{
48
    timer += 1;
49
    if (quick_mode == 1 || skiprunback == 1)
50
    {
51
        if (timer < 40)
52
        {
53
            snd_free_all();
54
            if (skiprunback == 0)
55
            {
56
                if (i_ex(obj_darkdoor))
57
                {
58
                    if (obj_darkdoor.image_index != 1)
59
                        snd_play(snd_locker);
60
                }
61
                doorblack = 1;
62
            }
63
            sus_v = 6;
64
            sus_f = 0.4;
65
            timer = 45;
66
            kris_x -= 4;
67
            sus_sprite = spr_susieu_run;
68
            kris_sprite = spr_krisu_run;
69
        }
70
    }
71
    if (timer < 30)
72
        sus_index += 0.2;
73
    if (timer == 30)
74
    {
75
        snd_free_all();
76
        if (i_ex(obj_darkdoor))
77
        {
78
            if (obj_darkdoor.image_index != 1)
79
                snd_play(snd_locker);
80
        }
81
        with (obj_darkdoor)
82
            instance_destroy();
83
        doorblack = 1;
84
        sus_index = 0;
85
        sus_v = 0;
86
        kris_x -= 4;
87
        sus_sprite = spr_susieu_run;
88
        kris_sprite = spr_krisu_run;
89
    }
90
    if (timer == 60)
91
    {
92
        sus_sprite = spr_susieu_run;
93
        kris_sprite = spr_krisu_run;
94
        sus_v = -5;
95
        sus_f = 0;
96
    }
97
    if (timer > 60 && timer < 68)
98
    {
99
        kris_y -= 1;
100
        sus_index += 0.25;
101
    }
102
    if (timer == 68)
103
    {
104
        sus_f = 0.15;
105
        sus_v = -4;
106
        sus_y -= 2;
107
        sus_x -= 2;
108
        sus_sprite = spr_susie_lw_fall_u;
109
        kris_sprite = spr_krisu_fall_lw;
110
        con = 15;
111
        soundtimer = 0;
112
    }
113
    if (doorblack == 1 && room != room_town_church)
114
    {
115
        draw_set_color(c_black);
116
        ossafe_fill_rectangle(rx1 + camerax(), ry1 + cameray(), rx2 + camerax(), ry2 + cameray(), false);
117
        if (!border_fade)
118
        {
119
            border_fade = true;
120
            with (obj_border_controller)
121
                hide_border(0.05);
122
        }
123
    }
124
}
125
if (con == 15)
126
{
127
    rs = 0;
128
    rh = (ry2 - ry1) / 100;
129
    rw = (rx2 - rx1) / 100;
130
    rx = (rx1 + rx2) / 2;
131
    ry = (ry1 + ry2) / 2;
132
    for (var i = 0; i < 8; i += 1)
133
        rsize[i] = 1 + (i * -2);
134
    rect_amount = 6;
135
    rect_draw = 1;
136
    timer = 0;
137
    if (quick_mode == 1)
138
        rect_amount = 3;
139
    con = 16;
140
    soundtimer = 3;
141
    rectsound = 0;
142
}
143
if (con == 16)
144
{
145
    soundthreshold = 6;
146
    if (quick_mode == 1)
147
        soundthreshold = 3;
148
    soundtimer++;
149
    if (soundtimer >= soundthreshold && rectsound < rect_amount)
150
    {
151
        soundtimer = 0;
152
        snd_stop(snd_dtrans_square);
153
        var snd = snd_play(snd_dtrans_square);
154
        snd_volume(snd, 0.5, 0);
155
        rectsound++;
156
    }
157
    sus_index += 0.25;
158
    if (sus_v >= 0)
159
    {
160
        sus_f = 0;
161
        sus_v += 0.005;
162
    }
163
    timer += 1;
164
    threshold = 80;
165
    if (quick_mode == 1)
166
        threshold = 30;
167
    if (timer >= threshold)
168
    {
169
        timer = 0;
170
        con = 17;
171
        sus_index = 0;
172
    }
173
}
174
if (con == 17)
175
{
176
    __background_set(e__BG.Visible, 0, 0);
177
    draw_rect = 0;
178
    linecon = 1;
179
    sus_x_current = sus_x;
180
    kris_x_current = kris_x;
181
    sus_sprite = spr_susie_lw_fall_turn;
182
    kris_sprite = spr_kris_fall_turnaround;
183
    con = 18;
184
    soundcon = 1;
185
    radius = 60;
186
}
187
if (soundcon == 1)
188
{
189
    dronesfx = snd_loop(snd_dtrans_drone);
190
    snd_volume(dronesfx, 0, 0);
191
    snd_volume(dronesfx, 0.5, 60);
192
    snd_pitch(dronesfx, 0.1);
193
    dronetimer = 0;
194
    soundcon = 2;
195
}
196
if (soundcon == 2)
197
{
198
    dronetimer++;
199
    if (quick_mode == 1)
200
        dronetimer++;
201
    dronepitch = dronetimer / 80;
202
    if (dronepitch >= 1)
203
    {
204
        dronepitch = 1;
205
        soundcon = 3;
206
    }
207
    snd_pitch(dronesfx, dronepitch);
208
}
209
if (con == 18)
210
{
211
    timer += 1;
212
    if (quick_mode == 1)
213
        timer += 1;
214
    sus_index = (timer / 36) * 5;
215
    sus_x = sus_x_current - (sin(degtorad(timer * 2.5)) * radius);
216
    if (kris_only == 0)
217
        kris_x = kris_x_current + (sin(degtorad(timer * 2.5)) * radius);
218
    if (timer >= 35)
219
    {
220
        sus_sprite = spr_susie_lw_fall_d;
221
        kris_sprite = spr_kris_fall_d_lw;
222
        sus_index = 0;
223
        con = 19;
224
        timer = 0;
225
    }
226
}
227
if (con == 19)
228
{
229
    sus_index += 0.2;
230
    timer += 1;
231
    if (quick_mode == 1)
232
        timer = 8;
233
    if (timer >= 8)
234
    {
235
        con = 30;
236
        timer = 0;
237
        sus_draw = 0;
238
    }
239
}
240
if (con == 30)
241
{
242
    if (kris_only == 0)
243
        draw_sprite_ext(spr_susie_lw_fall_d, index / 4, sus_x, sus_y, 1, 1, 0, c_white, char_alpha);
244
    draw_sprite_ext(spr_kris_fall_d_lw, index / 4, kris_x, kris_y, 1, 1, 0, c_white, char_alpha);
245
    timer += 1;
246
    if (quick_mode == 1)
247
        timer += 1;
248
    if (timer >= 15)
249
    {
250
        con = 31;
251
        timer = 0;
252
        sus_width = sprite_get_width(spr_susie_dw_fall_d);
253
        sus_height = sprite_get_height(spr_susie_dw_fall_d);
254
        sus_top = sus_height;
255
        kris_width = sprite_get_width(spr_kris_fall_d_dw);
256
        kris_height = sprite_get_height(spr_kris_fall_d_dw);
257
        kris_top = kris_height;
258
    }
259
}
260
if (con == 31)
261
{
262
    timer += 1;
263
    if (kris_only == 0)
264
        draw_sprite_part(spr_susie_lw_fall_d, index / 4, 0, 0, sus_width, sus_top, sus_x, sus_y);
265
    draw_sprite_part(spr_kris_fall_d_lw, index / 4, 0, 0, kris_width, kris_top, kris_x, kris_y);
266
    if (kris_only == 0)
267
        draw_sprite_part(spr_susie_dw_fall_d, index / 4, 0, sus_top, sus_width, sus_height - sus_top, sus_x, sus_y + sus_top);
268
    draw_sprite_part(spr_kris_fall_d_dw, index / 4, 0, kris_top, kris_width, kris_height - kris_top, kris_x, kris_y + kris_top);
269
    if (timer == 15)
270
    {
271
        with (obj_kris_headobj)
272
            breakcon = 1;
273
        if (room == room_library)
274
        {
275
            snd_play(snd_sparkle_glock);
276
            for (var i = 0; i < 1; i++)
277
            {
278
                sparkle[i] = 
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; }
(kris_x + 15, kris_y + 15, spr_sparestar_anim);
279
                sparkle[i].image_speed = 0.5;
280
                sparkle[i].hspeed = random_range(-3, 3);
281
                sparkle[i].friction = 0.05;
282
                sparkle[i].gravity = -0.1;
283
            }
284
            
scr_keyitemremove
scr_keyitemremove

function
scr_keyitemremove(arg0)
{ removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1) { loc = 0; skip = 0; if (global.keyitem[0] == arg0 && skip == 0) { loc = 0; skip = 1; } if (global.keyitem[1] == arg0 && skip == 0) { loc = 1; skip = 1; } if (global.keyitem[2] == arg0 && skip == 0) { loc = 2; skip = 1; } if (global.keyitem[3] == arg0 && skip == 0) { loc = 3; skip = 1; } if (global.keyitem[4] == arg0 && skip == 0) { loc = 4; skip = 1; } if (global.keyitem[5] == arg0 && skip == 0) { loc = 5; skip = 1; } if (global.keyitem[6] == arg0 && skip == 0) { loc = 6; skip = 1; } if (global.keyitem[7] == arg0 && skip == 0) { loc = 7; skip = 1; } if (global.keyitem[8] == arg0 && skip == 0) { loc = 8; skip = 1; } if (global.keyitem[9] == arg0 && skip == 0) { loc = 9; skip = 1; } if (global.keyitem[10] == arg0 && skip == 0) { loc = 10; skip = 1; } if (global.keyitem[11] == arg0 && skip == 0) { loc = 11; skip = 1; }
scr_keyitemshift(loc, 0);
removed = 1; } } function scr_keyitemremove_all(arg0) { var count = 0; for (var i = 0; i < array_length(global.keyitem); i++) { if (global.keyitem[i] == arg0) count++; } repeat (count)
scr_keyitemremove(arg0);
}
(9);
285
        }
286
        if (global.chapter == 2 && global.plot >= 200 && global.flag[387 returned_castle_town] == 0)
287
        {
288
            snd_play(snd_sparkle_glock);
289
            var total_recruits = scr_get_total_recruits(2) + 1;
290
            for (var i = 0; i < total_recruits; i++)
291
            {
292
                sparkle[i] = 
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; }
(kris_x + 15, kris_y + 15, spr_sparestar_anim);
293
                sparkle[i].image_speed = 0.5;
294
                sparkle[i].hspeed = random_range(-3, 3);
295
                sparkle[i].friction = 0.05;
296
                sparkle[i].gravity = -0.1;
297
            }
298
        }
299
    }
300
    if (timer >= 4)
301
    {
302
        if (sus_top > 2)
303
        {
304
            sus_top -= 0.5;
305
            if (quick_mode == 1)
306
                sus_top -= 1.5;
307
        }
308
        else
309
        {
310
            sus_top = 0;
311
        }
312
        if (sus_top >= 2 && kris_only == 0)
313
        {
314
            sus_particle = instance_create(sus_x + 3 + random(sus_width - 6), sus_y + sus_top, obj_dw_transition_particle);
315
            draw_sprite_part(spr_susie_white_fall_d, index / 4, 0, sus_top, sus_width, 1, sus_x, sus_y + sus_top);
316
        }
317
        if (kris_top > 5)
318
        {
319
            kris_top -= 0.5;
320
            if (quick_mode == 1)
321
                kris_top -= 1.5;
322
        }
323
        else
324
        {
325
            kris_top = 0;
326
        }
327
        if (kris_top >= 2)
328
        {
329
            kris_particle = instance_create(kris_x + 3 + random(kris_width - 6), kris_y + kris_top, obj_dw_transition_particle);
330
            draw_sprite_part(spr_kris_fall_d_white, index / 4, 0, kris_top, kris_width, 1, kris_x, kris_y + kris_top);
331
        }
332
    }
333
    threshold = 130;
334
    if (quick_mode == 1)
335
        threshold = 40;
336
    if (timer >= threshold)
337
    {
338
        if (quick_mode == 1)
339
            linecon = 0;
340
        sus_y = round(sus_y);
341
        sus_x = round(sus_x);
342
        kris_y = round(kris_y);
343
        kris_x = round(kris_x);
344
        timer = 0;
345
        sus_v = -0.2;
346
        sus_f = 0.01;
347
        con = 32;
348
    }
349
}
350
if (con == 32)
351
{
352
    if (timer == 0)
353
    {
354
        megablack = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(-10, -10, spr_whitepixel);
355
        with (megablack)
356
        {
357
            depth = 150;
358
            image_alpha = 1;
359
            y = -999;
360
            image_xscale = 999;
361
            image_yscale = 999;
362
            image_blend = c_black;
363
            persistent = 1;
364
        }
365
    }
366
    if (timer == 2)
367
        megablack.y = 0;
368
    timer += 1;
369
    if (timer >= 0 && timer < 8)
370
    {
371
        sus_v -= 0.5;
372
        if (kris_only == 0)
373
            draw_sprite_ext(spr_susie_dw_fall_smear, 0, sus_x, sus_y, 1, 1, 0, c_white, char_alpha);
374
        draw_sprite_ext(spr_kris_fall_smear, 0, kris_x, kris_y, 1, 1, 0, c_white, char_alpha);
375
    }
376
    if (timer >= 8 && timer < 12)
377
    {
378
        sus_v += 1;
379
        sus_f = 0;
380
        if (kris_only == 0)
381
            draw_sprite_ext(spr_susie_dw_fall_smear, 1, sus_x, sus_y, 1, 1, 0, c_white, char_alpha);
382
        draw_sprite_ext(spr_kris_fall_smear, 1, kris_x, kris_y, 1, 1, 0, c_white, char_alpha);
383
    }
384
    if (timer >= 12 && timer <= 13)
385
    {
386
        sus_v += 4;
387
        if (kris_only == 0)
388
            draw_sprite_ext(spr_susie_dw_fall_smear, 2, sus_x, sus_y, 1, 1, 0, c_white, char_alpha);
389
        draw_sprite_ext(spr_kris_fall_smear, 2, kris_x, kris_y, 1, 1, 0, c_white, char_alpha);
390
    }
391
    if (timer >= 14)
392
    {
393
        soundcon = 4;
394
        snd_volume(dronesfx, 0, 30);
395
        sus_v = 13;
396
        sus_f = 0;
397
        timer = 0;
398
        con = 33;
399
        rect_draw = 0;
400
    }
401
}
402
if (con == 33)
403
{
404
    timer += 1;
405
    if (quick_mode == 1 && timer < 31)
406
        timer = 31;
407
    if (kris_only == 0)
408
    {
409
        draw_sprite_ext(spr_susie_dw_fall_ball, timer / 2, sus_x, sus_y - (sus_v * 2), 1, 1, 0, c_white, 0.25);
410
        draw_sprite_ext(spr_susie_dw_fall_ball, timer / 2, sus_x, sus_y - sus_v, 1, 1, 0, c_white, 0.5);
411
        draw_sprite_ext(spr_susie_dw_fall_ball, timer / 2, sus_x, sus_y, 1, 1, 0, c_white, 1);
412
    }
413
    draw_sprite_ext(spr_kris_fall_ball, timer / 2, kris_x, kris_y - (sus_v * 2), 1, 1, 0, c_white, 0.25);
414
    draw_sprite_ext(spr_kris_fall_ball, timer / 2, kris_x, kris_y - sus_v, 1, 1, 0, c_white, 0.5);
415
    draw_sprite_ext(spr_kris_fall_ball, timer / 2, kris_x, kris_y, 1, 1, 0, c_white, 1);
416
    if (timer == 14)
417
        linecon = 0;
418
    if (timer == 30)
419
    {
420
        sus_y = -20;
421
        kris_y = -14;
422
    }
423
    if (timer > 30)
424
    {
425
        if (skiprunback == 1)
426
        {
427
            var _offset = 13;
428
            if (room == room_schooldoor)
429
                _offset = 0;
430
            if (timer == (36 + _offset))
431
                snd_play(snd_dtrans_flip);
432
        }
433
        else
434
        {
435
            var _offset = 10;
436
            if (room == room_schooldoor)
437
                _offset = 0;
438
            if (timer == (39 + _offset))
439
                snd_play(snd_dtrans_flip);
440
        }
441
        if (sus_y >= (finaly - 8))
442
        {
443
            con = 34;
444
            timer = 0;
445
            sus_v = 0;
446
            kris_y = finaly + 6;
447
            sus_y = finaly;
448
            getup_index = 0;
449
            fake_screenshake = 1;
450
            fake_shakeamount = 8;
451
            remkrisx = kris_x - camerax();
452
            remkrisy = kris_y - cameray();
453
            remsusx = sus_x - camerax();
454
            remsusy = sus_y - cameray();
455
        }
456
    }
457
}
458
if (con == 34)
459
{
460
    snd_stop(dronesfx);
461
    timer += 1;
462
    if (quick_mode == 1 && timer < 15)
463
        timer = 15;
464
    if (timer > 1)
465
    {
466
        if (kris_only == 0)
467
            draw_sprite_ext(spr_susie_dw_landed, getup_index, (sus_x * dz) + fake_shakeamount, sus_y * dz, 1 * dz, 1 * dz, 0, c_white, 1);
468
        draw_sprite_ext(spr_kris_dw_landed, getup_index, (kris_x * dz) + fake_shakeamount, kris_y * dz, 1 * dz, 1 * dz, 0, c_white, 1);
469
    }
470
    if (timer == 26)
471
    {
472
        if (room != room_town_church)
473
        {
474
            with (obj_border_controller)
475
                show_border();
476
        }
477
        kris_x = remkrisx;
478
        kris_y = remkrisy;
479
        sus_x = remsusx;
480
        sus_y = remsusy;
481
        if (global.flag[302 toy_deliver_progress] == 1)
482
            global.flag[302 toy_deliver_progress] = 2;
483
        
scr_become_dark
scr_become_dark

function
scr_become_dark()
{ global.darkzone = 1; scr_equip_dw_weapon_by_lw_id(global.lweapon); for (var i = 0; i < 8; i++) { var weapon = get_weapon_by_lw_id(global.litem[i]); if (weapon != -4) { if (!
scr_weaponcheck_inventory(weapon.dw_id) && !
scr_weaponcheck_equipped_any(weapon.dw_id))
scr_weaponget(weapon.dw_id);
} } global.hp[1] = ceil((global.lhp / global.lmaxhp) * global.maxhp[1]); if (global.hp[1] < 1) global.hp[1] = 1; if (global.hp[1] > global.maxhp[1]) global.hp[1] = global.maxhp[1]; }
();
484
        dz = global.darkzone + 1;
485
        room_goto(nextroom);
486
    }
487
    if (timer == 27)
488
    {
489
        snd_play(snd_him_quick);
490
        with (obj_mainchara)
491
        {
492
            x = -999;
493
            cutscene = 1;
494
            visible = 0;
495
        }
496
        with (obj_caterpillarchara)
497
        {
498
            x = -999;
499
            visible = 0;
500
        }
501
        if (global.chapter == 2)
502
        {
503
            if (global.plot == 9)
504
            {
505
                obj_mainchara.y = kris_y;
506
                kris_y += 200;
507
                cameray_set(cameray() + 400);
508
            }
509
        }
510
    }
511
    if (timer >= 30 && timer < 60)
512
    {
513
        with (megablack)
514
            image_alpha -= 0.05;
515
        if (quick_mode == 1)
516
        {
517
            with (megablack)
518
                image_alpha -= 0.05;
519
        }
520
    }
521
    if (timer == 50)
522
        getup_index = 1;
523
    if (timer == 53)
524
        getup_index = 2;
525
    if (timer == 55)
526
    {
527
        with (megablack)
528
            instance_destroy();
529
        persistent = 0;
530
        global.interact = 0;
531
        global.facing = 0;
532
        obj_mainchara.x = (kris_x * 2) + 8;
533
        obj_mainchara.y = (kris_y * 2) + 4;
534
        with (obj_mainchara)
535
            visible = 1;
536
        if (i_ex(global.cinstance[1]))
537
        {
538
            with (global.cinstance[1])
539
                instance_destroy();
540
        }
541
        if (kris_only == 0 && i_ex(global.cinstance[0]))
542
        {
543
            global.cinstance[0].x = (sus_x * 2) + 10;
544
            global.cinstance[0].y = sus_y * 2;
545
            with (obj_caterpillarchara)
546
            {
547
                visible = 1;
548
                
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { _newfacing =
scr_facing_letter_to_number(
scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
();
549
                facing[target] = 0;
550
                sprite_index = dsprite;
551
            }
552
        }
553
        instance_destroy();
554
    }
555
}
556
if (sus_draw == 1)
557
{
558
    if (instance_exists(obj_kris_headobj))
559
    {
560
        obj_kris_headobj.x = kris_x + 14;
561
        obj_kris_headobj.y = kris_y - 2;
562
    }
563
    if (global.darkzone == 0)
564
    {
565
        draw_sprite_ext(kris_sprite, sus_index, kris_x + fake_shakeamount, kris_y, 1, 1, 0, c_white, char_alpha);
566
        if (kris_only == 0)
567
            draw_sprite_ext(sus_sprite, sus_index, sus_x + fake_shakeamount, sus_y, 1, 1, 0, c_white, char_alpha);
568
    }
569
    else
570
    {
571
        draw_sprite_ext(kris_sprite, sus_index, (kris_x * 2) + fake_shakeamount, kris_y * 2, 2, 2, 0, c_white, char_alpha);
572
        if (kris_only == 0)
573
            draw_sprite_ext(sus_sprite, sus_index, (sus_x * 2) + fake_shakeamount, sus_y * 2, 2, 2, 0, c_white, char_alpha);
574
    }
575
}
576
577
enum e__BG
578
{
579
    Visible,
580
    Foreground,
581
    Index,
582
    X,
583
    Y,
584
    Width,
585
    Height,
586
    HTiled,
587
    VTiled,
588
    XScale,
589
    YScale,
590
    HSpeed,
591
    VSpeed,
592
    Blend,
593
    Alpha
594
}