Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mauswheel_cursor_guide_Draw_0

(view raw script w/o annotations or w/e)
1
if (listlength == 0)
2
    listlength = array_length_1d(cursor.memory.xpos);
3
var startpoint = ceil(cursor.followindex / 5) * 5;
4
for (i = startpoint; i < min(cursor.followindex + 60, listlength); i += 5)
5
{
6
    var alpha = 1 - ((i - cursor.followindex) / 60);
7
    draw_sprite_ext(sprite_index, image_index, cursor.memory.xpos[i], cursor.memory.ypos[i], 1, 1, 0, image_blend, alpha);
8
}