Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_conveyorbelt_Draw_0

(view raw script w/o annotations or w/e)
1
if (xspeed != 0)
2
    image_speed = clamp(xspeed, -1, 1);
3
if (yspeed != 0)
4
    image_speed = clamp(yspeed, -1, 1);
5
ht = image_yscale / 2;
6
wd = image_xscale / 2;
7
for (var i = 0; i < ht; i++)
8
{
9
    for (var j = 0; j < wd; j++)
10
        draw_sprite_ext(sprite_index, image_index, x + (j * 40), y + (i * 40), 2, 2, 0, c_white, image_alpha);
11
}