Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_jump_to_point_sprite

(view raw script w/o annotations or w/e)
1
function 
scr_jump_to_point_sprite
scr_jump_to_point_sprite

function
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, arg4, arg5)
{ __jump_to_point = instance_create(x, y, obj_jump_to_point); __jump_to_point.target = id; with (__jump_to_point) { startx = x; starty = y; endx = arg0; endy = arg1; jumpspeed = arg2; jumptime = arg3; jumpsprite = arg4; landsprite = arg5; if (arg4 > 0) usesprites = 1; drawshadow = 0; } return __jump_to_point; }
(arg0, arg1, arg2, arg3, arg4, arg5)
2
{
3
    __jump_to_point = instance_create(x, y, obj_jump_to_point);
4
    __jump_to_point.target = id;
5
    with (__jump_to_point)
6
    {
7
        startx = x;
8
        starty = y;
9
        endx = arg0;
10
        endy = arg1;
11
        jumpspeed = arg2;
12
        jumptime = arg3;
13
        jumpsprite = arg4;
14
        landsprite = arg5;
15
        if (arg4 > 0)
16
            usesprites = 1;
17
        drawshadow = 0;
18
    }
19
    return __jump_to_point;
20
}