Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_subanim_marker_Draw_0

(view raw script w/o annotations or w/e)
1
var _sub = sub_index % sub_sprites;
2
if (_sub < 0)
3
    _sub += sub_sprites;
4
var _image = image_index % subframes;
5
if (_image < 0)
6
    _image += subframes;
7
draw_sprite_ext(sprite_index, _image + (floor(_sub) * subframes), x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);