Deltarune script viewer

← back to main script listing

gml_Object_obj_controller_dw_cyber_teacup_final_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (teacup1.y <= 1260)
4
    {
5
        pancakemaker1 = instance_create(140, -148, obj_dw_pancakemaker);
6
        pancakemaker1.image_xscale = 2;
7
        pancakemaker1.image_yscale = 2;
8
        pancakemaker1.depth = 0;
9
        con = 1;
10
        global.interact = 1;
11
    }
12
}
13
if (con == 1)
14
{
15
    pancakemaker1.y += 10;
16
    if (pancakemaker1.y >= 262)
17
    {
18
        instance_create(0, 0, obj_shake);
19
        snd_play(snd_locker);
20
        pancakemaker1.speed = 0;
21
        deadTeacup1 = instance_create(teacup1.x, teacup1.y, obj_soliddark);
22
        deadTeacup1.visible = true;
23
        deadTeacup1.depth = teacup1.depth;
24
        deadTeacup1.sprite_index = teacup1.sprite_index;
25
        deadTeacup1.image_xscale = teacup1.image_xscale;
26
        deadTeacup1.image_yscale = teacup1.image_yscale;
27
        deadTeacupStem1 = instance_create(140, teacup1.y + 16, obj_soliddark);
28
        deadTeacupStem1.depth = teacup1.depth + 1;
29
        deadTeacupStem1.visible = true;
30
        deadTeacupStem1.sprite_index = spr_dw_pancakemaker;
31
        deadTeacupStem1.image_xscale = 2;
32
        deadTeacupStem1.image_yscale = 2;
33
        con = 2;
34
    }
35
}
36
if (con == 2)
37
{
38
    timer++;
39
    if (timer > 20)
40
    {
41
        with (teacup1)
42
            instance_destroy();
43
        global.interact = 0;
44
    }
45
}