Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_blue_cat_Step_1

(view raw script w/o annotations or w/e)
1
for (var i = 4; i >= 1; i--)
2
{
3
    last_x[i] = last_x[i - 1];
4
    last_y[i] = last_y[i - 1];
5
}
6
last_x[0] = lerp(last_x[0], obj_mike_controller.mx, 0.25);
7
last_y[0] = lerp(last_y[0], obj_mike_controller.my + 24, 0.25);