Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_distance

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

function scr_distance(argument0, argument1) //gml_Script_scr_distance { var dx = argument1[0] - argument0[0] var dy = argument1[1] - argument0[1] return sqrt(dx * dx + dy * dy); }
(argument0, argument1) //gml_Script_scr_distance
2
{
3
    var dx = argument1[0] - argument0[0]
4
    var dy = argument1[1] - argument0[1]
5
    return sqrt(dx * dx + dy * dy);
6
}