Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_bullet_rain_bullet_Draw_0

(view raw script w/o annotations or w/e)
1
if (can_fire == 0)
2
    return;
3
var x_target = lengthdir_x(beam_length, direction)
4
var y_target = lengthdir_y(beam_length, direction)
5
var stretch_multiplier = (point_distance(x, y, x_target, y_target)) / sprite_get_width(spr_battle_enemy_attack_starlo_rope)
6
var new_col = c_white
7
draw_sprite_ext(spr_battle_enemy_attack_starlo_rope, 0, x, y, stretch_multiplier, 1, direction, new_col, draw_alpha)