Undertale script viewer

← back to main script listing

gml_Object_obj_core_lightstrip_m_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_kitchenforcefield))
2
    depth = obj_kitchenforcefield.depth + 1;
3
if (powered == 1)
4
    siner += 1;
5
else
6
    siner = 0;
7
if (image_xscale >= 0)
8
{
9
    for (i = 0; i < image_xscale; i += 1)
10
        draw_sprite(spr_core_wallstrip_m, siner / 6, x + (i * 20), y);
11
}