Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_intro_ch3_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (!files_exist)
4
    {
5
        timer++;
6
        if (timer == 75)
7
            con = 1;
8
    }
9
    else
10
    {
11
        tv_timer++;
12
        if (tv_timer == 75)
13
            tv_time_vfx = instance_create(0, 0, obj_intro_tv_time);
14
        if (!is_canceled && tv_timer >= 105)
15
        {
16
            if (button1_p() || button2_p())
17
            {
18
                is_canceled = true;
19
                tv_time_max = tv_timer;
20
                fade_time_max = 60;
21
                var _fade_time = fade_time_max;
22
                with (tv_time_vfx)
23
                    snd_volume(tv_sound, 0, _fade_time);
24
            }
25
        }
26
        if (tv_timer == tv_time_max)
27
        {
28
            is_canceled = true;
29
            fade_out();
30
        }
31
        if (tv_timer == (tv_time_max + fade_time_max + 30))
32
            exit_screen();
33
    }
34
}