Undertale script viewer

← back to main script listing

gml_Object_obj_nicesnowman_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
myinteract = 0;
3
image_xscale = 1;
4
image_yscale = 1;
5
dt = 0;
6
if (global.flag[253 killed_snowman] == 1)
7
{
8
    sprite_index = spr_sadsnowman_d1;
9
    image_index = 0;
10
}
11
if (global.flag[253 killed_snowman] == 2)
12
{
13
    sprite_index = spr_sadsnowman_d1;
14
    image_index = 1;
15
}
16
if (global.flag[253 killed_snowman] >= 3)
17
{
18
    sprite_index = spr_sadsnowman_d1;
19
    image_index = 2;
20
}