Undertale script viewer

← back to main script listing

gml_Object_obj_icecavewall_Draw_0

(view raw script w/o annotations or w/e)
1
timer += 1;
2
if (type == 0)
3
{
4
    draw_sprite(sprite_index, image_index, x, y);
5
    draw_sprite_ext(spr_icecavewall_2, abs(sin(timer / 15) * 2.8), x + sin(timer / 7), y + cos(timer / 8), 1, 1, 0, c_white, al);
6
}
7
else
8
{
9
    draw_sprite(sprite_index, image_index, x, y);
10
    draw_sprite_ext(spr_icecavewall_2b, abs(sin(timer / 15) * 2.8), x + sin(timer / 7), y + cos(timer / 8), 1, 1, 0, c_white, al);
11
}
12
if (timer >= 100 && timer < 150)
13
    al += 0.02;
14
if (timer >= 300)
15
{
16
    al -= 0.02;
17
    if (al <= 0)
18
    {
19
        al = 0;
20
        timer = 0;
21
    }
22
}