Undertale script viewer

← back to main script listing

gml_Object_obj_bedlump_Draw_0

(view raw script w/o annotations or w/e)
1
wc = 0;
2
wc2 = 0;
3
if (x < x1)
4
    wc = x1 - x;
5
if (x > x2)
6
    wc2 = x - x2;
7
draw_sprite_part(sprite_index, GR, wc, 0, sprite_width - wc - wc2, sprite_height, x + wc, y);