Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_final_2_base_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 (damage_flash_timer > 0)
5
{
6
    shader_set(sh_flash)
7
    with (obj_martlet_body_part_base)
8
    {
9
        if (visible == true)
10
            draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, (image_alpha * 0.25))
11
    }
12
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, (image_alpha * 0.25))
13
    shader_reset()
14
}
15
draw_set_alpha(martlet_previous_melt_sprite_alpha)
16
draw_sprite(martlet_previous_melt_sprite, 0, x, y)
17
if (martlet_previous_melt_sprite == spr_martlet_f2_torso)
18
{
19
    with (obj_martlet_body_part_base)
20
        draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, other.martlet_previous_melt_sprite_alpha)
21
}
22
draw_set_alpha(1)