Undertale script viewer

← back to main script listing

gml_Object_obj_piper_steam_Draw_0

(view raw script w/o annotations or w/e)
1
timer += 1;
2
draw_sprite(spr_steamer_bottom, 0, x, y);
3
draw_sprite(spr_steamer_top, 0, x, y + (f_l * 3));
4
if (timer == 30)
5
{
6
    f_l = 0;
7
    f_d = 1;
8
}
9
if (timer > 30 && timer < 50)
10
{
11
    instance_create(x + 7, y + 6 + (f_l * 3), obj_steamplume2);
12
    f_l += 0.3;
13
    if (f_l >= 3)
14
        timer = 50;
15
}
16
if (timer >= 50 && timer < 90)
17
{
18
    f_l -= 0.1;
19
    if (f_l <= 0)
20
    {
21
        f_l = 0;
22
        timer = 25;
23
    }
24
}