Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_laser_hand_Draw_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
draw_self();
4
if (laser_active == true)
5
{
6
    draw_sprite_ext(spr_battle_enemy_attack_axis_laser_1, 0, x, y, 1, 1, image_angle, c_white, image_alpha);
7
    draw_sprite_ext(spr_battle_enemy_attack_axis_laser_2, floor(laser_frame_current), x, y, laser_length, 1, image_angle, c_white, image_alpha);
8
    draw_sprite_ext(spr_battle_enemy_attack_axis_laser_3, 0, x + lengthdir_x(laser_length, direction), y + lengthdir_y(laser_length, direction), 1, 1, image_angle, c_white, image_alpha);
9
    if (laser_blocked)
10
        draw_sprite_ext(spr_battle_enemy_attack_axis_laser_impact, floor(impact_frame_current), obj_battle_enemy_attack_axis_shield.x + lengthdir_x(14, obj_battle_enemy_attack_axis_shield.direction), obj_battle_enemy_attack_axis_shield.y + lengthdir_y(14, obj_battle_enemy_attack_axis_shield.direction), 1, 1, obj_battle_enemy_attack_axis_shield.direction - 180, c_white, 1);
11
}