Deltarune script viewer

← back to main script listing

gml_Object_obj_maus_split_basket_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (extra_mode == 1)
4
        image_xscale = 1;
5
    if (extra_mode == 0)
6
        image_xscale = 0.6;
7
    if (y <= (yy + sprite_height))
8
    {
9
        y += 10;
10
    }
11
    else
12
    {
13
        y = yy + sprite_height;
14
        con = 1;
15
        timer = 0;
16
        siner = 0;
17
    }
18
}
19
if (con == 1)
20
{
21
    siner++;
22
    x = xstart + (sin(siner / 6) * 120);
23
    if (button3_p())
24
    {
25
        con = 2;
26
        vspeed = 20;
27
        friction = 0.5;
28
        with (obj_maus_liddle)
29
        {
30
            con = 5;
31
            timer = 0;
32
        }
33
        snd_play(snd_wallclaw);
34
    }
35
}
36
if (con == 2)
37
{
38
    if (y >= (yy + 240))
39
        image_alpha -= 0.2;
40
    if (image_alpha <= 0)
41
    {
42
        con = 3;
43
        with (obj_maus_liddle)
44
        {
45
            if (captured == 0)
46
                con = 2;
47
        }
48
        instance_destroy();
49
    }
50
}
51
if (con == 10)
52
{
53
    if (y <= (yy - 100))
54
        instance_destroy();
55
}