Undertale script viewer

← back to main script listing

gml_Object_obj_mettaton_actor_Create_0

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

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
2
m[0] = 1747;
3
m[1] = 1751;
4
m[2] = 1752;
5
m[3] = 1756;
6
m[4] = 1753;
7
m[5] = 1754;
8
m[6] = 1748;
9
m[7] = 1749;
10
if (global.flag[20 animation_index] < 7)
11
    sprite_index = m[global.flag[20 animation_index]];
12
d = 0;