Undertale script viewer

← back to main script listing

gml_Object_obj_oniont_Create_0

(view raw script w/o annotations or w/e)
1
on = 0;
2
onion_blue_alpha = 0;
3
onionh = 0;
4
type = 0;
5
siner = 0;
6
special = 0;
7
follow = 0;
8
if (instance_exists(obj_mainchara))
9
{
10
    if (y > obj_mainchara.y)
11
        scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
12
}