Undertale script viewer

← back to main script listing

gml_Object_obj_bed_key_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite(sprite_index, image_index, x, y);
2
anim += 0.1;
3
if (global.flag[484 truelab_yellow_key_status] < 2)
4
    draw_sprite_ext(spr_leverkey, anim, x + 34, y + 32, 1, 1, 0, c_yellow, 1);
5
draw_sprite_part(spr_bed_dark_sheet_weird, 0, 0, 0, 46, 39 - bedy, x + 2, y + 13 + bedy);
6
if (global.flag[484 truelab_yellow_key_status] > 0)
7
{
8
    bedy += 4;
9
    if (bedy >= 30)
10
        bedy = 30;
11
}