Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_yellow_shot_blast_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (laser_active == true)
4
{
5
    var x_offset = 0
6
    var y_offset = 0
7
    switch image_angle
8
    {
9
        case 0:
10
            x_offset = 10
11
            break
12
        case 90:
13
            y_offset = -10
14
            break
15
        case 180:
16
            x_offset = -10
17
            break
18
    }
19
20
    draw_sprite_ext(spr_heart_yellow_blast_1, image_index, x, y, 1, laser_width, image_angle, c_white, image_alpha)
21
    draw_sprite_ext(spr_heart_yellow_blast_2, 0, (x + x_offset), (y + y_offset), laser_length, laser_width, image_angle, c_white, image_alpha)
22
    draw_sprite_ext(spr_heart_yellow_blast_3, impact_frame_current, (x + (lengthdir_x(laser_length, direction))), (y + (lengthdir_y(laser_length, direction))), 1, laser_width, image_angle, c_white, image_alpha)
23
}