Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mo_menu_Step_0

(view raw script w/o annotations or w/e)
1
depth = -y;
2
if (mo_menu_fall == 1)
3
{
4
    mo_menu_fall = 2;
5
    men_vsp = 14.3;
6
}
7
y += men_vsp;
8
if (mo_menu_fall == 2)
9
{
10
    if (men_vsp > 0)
11
    {
12
        men_vsp -= 1;
13
    }
14
    else
15
    {
16
        men_vsp = 0;
17
        depth = -y;
18
        mo_menu_fall = 3;
19
    }
20
}
21
if (mo_menu_fall == 4)
22
{
23
    mo_menu_fall = 5;
24
    men_hsp = -11.8;
25
}
26
if (mo_menu_fall == 5)
27
{
28
    if (men_hsp < 0)
29
    {
30
        men_hsp += 0.4;
31
    }
32
    else
33
    {
34
        men_hsp = 0;
35
        instance_destroy();
36
    }
37
}
38
x += men_hsp;