Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_perfect_chain_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
with (obj_susiezilla_gamecontroller)
3
{
4
    if (gameover)
5
    {
6
        instance_destroy(other.id);
7
        exit;
8
    }
9
}
10
if (string_char_at(letters1, timer) != "")
11
    create_letter(string_char_at(letters1, timer), x - ((midlength1 - timer) * 20), y - 20);
12
if (string_char_at(letters1, timer) != "")
13
    create_letter(string_char_at(letters2, timer), x - ((midlength2 - timer) * 20), y);
14
if (timer == (maxlength + 15))
15
    create_letter("+", x - 30, y - 55);
16
if (timer == (maxlength + 16))
17
    create_letter("5", x - 10, y - 55);
18
if (timer == (maxlength + 17))
19
{
20
    create_letter("0", x + 10, y - 55);
21
    instance_destroy();
22
}