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 |
men_vsp -= 1 |
12 |
else |
13 |
{ |
14 |
men_vsp = 0 |
15 |
depth = (-y) |
16 |
mo_menu_fall = 3 |
17 |
} |
18 |
} |
19 |
if (mo_menu_fall == 4) |
20 |
{ |
21 |
mo_menu_fall = 5 |
22 |
men_hsp = -11.8 |
23 |
} |
24 |
if (mo_menu_fall == 5) |
25 |
{ |
26 |
if (men_hsp < 0) |
27 |
men_hsp += 0.4 |
28 |
else |
29 |
{ |
30 |
men_hsp = 0 |
31 |
instance_destroy() |
32 |
} |
33 |
} |
34 |
x += men_hsp |