Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_credits_ch3_Step_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
}
4
if (timer == 0)
5
{
6
    snd_free_all();
7
    song0 = snd_init("ch2_credits.ogg");
8
    song1 = mus_play(song0);
9
}
10
if (!paused)
11
    timer++;
12
if (timer == 100)
13
    credit_index++;
14
if (timer == 201)
15
    credit_index++;
16
if (timer == 302)
17
{
18
    creditalpha = 1;
19
    credit_index++;
20
}
21
if (timer == 403)
22
    credit_index++;
23
if (timer == 503)
24
{
25
    textalpha = 1;
26
    credit_index++;
27
}
28
if (timer == 604)
29
{
30
    creditalpha = 1;
31
    credit_index++;
32
}
33
if (timer == 705)
34
    credit_index++;
35
if (timer == 805)
36
{
37
    creditalpha = 1;
38
    credit_index++;
39
}
40
if (timer == 906)
41
    credit_index++;
42
if (timer == 1007)
43
    credit_index++;
44
if (timer == 1108)
45
    credit_index++;
46
if (timer == 1208)
47
    credit_index++;
48
if (timer == 1309)
49
    credit_index++;
50
if (timer == 1410)
51
    credit_index++;
52
if (timer == 1511)
53
    credit_index++;
54
if (timer == 1611)
55
{
56
    creditalpha = 0;
57
    textalpha -= 0.01;
58
    credit_index++;
59
}
60
if (timer > 1641 && timer < 1711)
61
{
62
    if (creditalpha != 1)
63
        creditalpha += 0.02;
64
}
65
if (timer >= 1801)
66
{
67
    creditalpha -= 0.05;
68
    if (creditalpha < -0.1)
69
        room_goto(room_chapter_continue);
70
}
71
if (timer > 1744 && timer < 1910)
72
    creditalpha += 0.02;
73
if (timer > 1910)
74
    creditalpha -= 0.02;