Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_jump_to_point_custom

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

function
scr_jump_to_point_custom(arg0, arg1, arg2, arg3)
{ __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 = argument4; landsprite = argument5; if (argument4 > 0) usesprites = 1; drawshadow = 0; customsprite = true; } return __jump_to_point; }
(arg0, arg1, arg2, arg3)
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 = argument4;
14
        landsprite = argument5;
15
        if (argument4 > 0)
16
            usesprites = 1;
17
        drawshadow = 0;
18
        customsprite = true;
19
    }
20
    return __jump_to_point;
21
}