Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_gun_parent_Step_0

(view raw script w/o annotations or w/e)
1
x_target = lengthdir_x(dash_length, direction)
2
y_target = lengthdir_y(dash_length, direction)
3
line_offset += 3
4
if (line_offset >= 20)
5
    line_offset -= 20
6
for (var i = line_segments; i > 0; i--)
7
{
8
    x_start[i] = x + (lengthdir_x(line_offset, direction)) + (lengthdir_x(((dash_length + gap_length) * i), direction))
9
    y_start[i] = y + (lengthdir_y(line_offset, direction)) + (lengthdir_y(((dash_length + gap_length) * i), direction))
10
}