Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_path_jump

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

function scr_path_jump(argument0, argument1, argument2, argument3) //gml_Script_scr_path_jump { with (argument0) { jump_path = path_add() path_add_point(jump_path, argument0.x, argument0.y, 100) path_add_point(jump_path, (argument1 + (sign(argument0.x - argument1)) * (min(abs(argument0.x - argument1), 15))), (argument2 - argument3), 75) path_add_point(jump_path, argument1, argument2, 100) path_set_kind(jump_path, 1) path_set_closed(jump_path, false) path_start(jump_path, 4, path_action_stop, false) audio_play_sound(snd_playerjump, 1, 0) } }
(argument0, argument1, argument2, argument3) //gml_Script_scr_path_jump
2
{
3
    with (argument0)
4
    {
5
        jump_path = path_add()
6
        path_add_point(jump_path, argument0.x, argument0.y, 100)
7
        path_add_point(jump_path, (argument1 + (sign(argument0.x - argument1)) * (min(abs(argument0.x - argument1), 15))), (argument2 - argument3), 75)
8
        path_add_point(jump_path, argument1, argument2, 100)
9
        path_set_kind(jump_path, 1)
10
        path_set_closed(jump_path, false)
11
        path_start(jump_path, 4, path_action_stop, false)
12
        audio_play_sound(snd_playerjump, 1, 0)
13
    }
14
}