Undertale script viewer

← back to main script listing

gml_Object_obj_damndummy_Draw_0

(view raw script w/o annotations or w/e)
1
if (float == 0)
2
    draw_sprite(sprite_index, image_index, x, y);
3
if (float == 1)
4
{
5
    sinadd = 0;
6
    if (offground < 10)
7
        offground += 2;
8
    else
9
        float = 2;
10
}
11
if (float == 2)
12
{
13
    sinadd = 4 * sin(siner / 6);
14
    siner += 1;
15
}
16
if (float == 1 || float == 2)
17
{
18
    if (sprite_index != spr_napstablook_d)
19
        draw_sprite_stretched(spr_centeredhole, image_index, x - (sinadd / 2), y + 25 + offground, 20 + sinadd, 15);
20
    else
21
        draw_sprite_stretched(spr_centeredhole, image_index, x - (sinadd / 2) - 2, y + 25 + offground, 20 + sinadd, 15);
22
    draw_sprite_ext(sprite_index, image_index, x, (y - offground) + sinadd, 1, 1, 0, c_white, image_alpha);
23
}