Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_guardener_verlet_vine_Draw_0

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