Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_death_event_sword_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_color(red);
2
ossafe_fill_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480);
3
draw_set_color(c_white);
4
draw_self_board();
5
if (con == 0)
6
{
7
    timer++;
8
    if (timer == 1)
9
        snd_play(snd_fall);
10
    if (timer < 48)
11
    {
12
        if ((timer % 4) == 0)
13
            facing--;
14
    }
15
    if (timer == 40)
16
    {
17
        red = 7079;
18
        obj_gameshow_swordroute.screencolor = red;
19
    }
20
    if (timer == 50)
21
    {
22
        red = 5241;
23
        obj_gameshow_swordroute.screencolor = red;
24
    }
25
    if (timer == 60)
26
    {
27
        red = 0;
28
        obj_gameshow_swordroute.screencolor = red;
29
    }
30
    if (timer == 61)
31
        obj_gameshow_swordroute.drawui = false;
32
    if (timer == 90)
33
    {
34
        with (instance_create_depth(x, y, 99999, obj_tvturnoff_manager))
35
            yoff = -64;
36
        snd_free_all();
37
        safe_delete(obj_writer);
38
        safe_delete(obj_board_writer);
39
        depth = 100000;
40
        obj_gameshow_swordroute.drawui = false;
41
        obj_board_controller.drawcrt = false;
42
        drawblack = true;
43
        with (obj_mainchara_board)
44
            controlled = 0;
45
    }
46
    if (timer == 120)
47
    {
48
        global.interact = 0;
49
        obj_mainchara.freeze = false;
50
        obj_mainchara.fun = false;
51
        global.facing = 0;
52
        room_goto(room_board_sword_intro);
53
    }
54
}
55
if (facing > 3)
56
    facing = 0;
57
if (facing < 0)
58
    facing = 3;
59
sprite_index = face[facing];