Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_verlet_rope_generator_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
for (var i = 0; i < array_length(sticks); i++)
4
{
5
    if (!sticks[i][6])
6
        draw_sprite_ext(sticks[i][0][5], 0, sticks[i][0][0], sticks[i][0][1], sticks[i][3], (1 + (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); }
(sticks[i][0], sticks[i][1])) / sprite_get_height(sticks[i][0][5])), ((point_direction(sticks[i][0][0], sticks[i][0][1], sticks[i][1][0], sticks[i][1][1])) + 90), c_white, 1)
7
}