Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_teevie_quiz_screen_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (shoot_sequence)
3
{
4
    shoot_sequence_timer++;
5
    if (shoot_sequence_timer == 1)
6
    {
7
        var _current_screen_tile = bullet_pos_list[bullet_pos_index];
8
        var _tv_height = tvheight;
9
        var _tv_width = tvwidth;
10
        var _xpos = x + (_current_screen_tile.x * tvwidth);
11
        var _ypos = y + (_current_screen_tile.y * tvheight);
12
        var _shooter = instance_create(_xpos, _ypos, obj_dw_ch3_teevie_shooter);
13
        with (_shooter)
14
            init(_current_screen_tile, _tv_height, _tv_width);
15
        shooter_list[array_length_1d(shooter_list)] = _shooter;
16
    }
17
    if (shoot_sequence_timer == 6)
18
    {
19
        bullet_pos_index++;
20
        if (bullet_pos_index < array_length_1d(bullet_pos_list))
21
        {
22
            shoot_sequence_timer = 0;
23
        }
24
        else
25
        {
26
            shoot_sequence = false;
27
            shoot_sequence_timer = 0;
28
            bullet_pos_index = 0;
29
        }
30
    }
31
}