Undertale script viewer

← back to main script listing

gml_Object_obj_moldsmalx_part_Draw_0

(view raw script w/o annotations or w/e)
1
if (f == 0)
2
{
3
    if (c == 0)
4
        sl2 = sin(sinelover / 10) * 8;
5
    else
6
        sl2 = cos(sinelover / 10) * 8;
7
    if (y < (bborder - 20))
8
        draw_sprite_ext(sprite_index, image_index, sl2 + x, y, 2, 2, 0, c_white, 1);
9
}
10
if (f == 1)
11
    instance_destroy();
12
if (f == 2)
13
{
14
    vspeed = 0;
15
    if (c == 0)
16
        sl2 = sin(sinelover / 10) * 8;
17
    else
18
        sl2 = cos(sinelover / 10) * 8;
19
    if (y < (bborder - 20))
20
        draw_sprite_ext(sprite_index, image_index, x + sl2, y, 1.5 + stetch, 2, 0, c_white, 1);
21
    sinelover += 1;
22
}