Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_newhome_03_cutscene_postfight_kill_Draw_73

(view raw script w/o annotations or w/e)
1
if (overlay_alpha > 0)
2
{
3
    draw_set_alpha(overlay_alpha);
4
    draw_set_color(c_black);
5
    draw_rectangle(0, 0, room_width, room_height, 0);
6
    draw_set_alpha(1);
7
    with (obj_player_npc)
8
    {
9
        if (other.scene < 223)
10
            draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha);
11
        draw_set_alpha(other.clover_overlay_alpha);
12
        shader_set(sh_flash);
13
        draw_sprite(sprite_index, image_index, x, y);
14
        shader_reset();
15
        draw_set_alpha(1);
16
        if (other.white_overlay_radius > 0)
17
        {
18
            draw_set_color(c_white);
19
            draw_set_alpha(other.circle_alpha);
20
            draw_circle(obj_player_npc.x, obj_player_npc.y, other.white_overlay_radius, false);
21
            draw_set_alpha(1);
22
        }
23
        draw_set_alpha(other.clover_overlay_alpha_dark);
24
        shader_set(sh_silhouette);
25
        draw_sprite(sprite_index, image_index, x + irandom_range(-other.clover_shake_intensity, other.clover_shake_intensity), y + irandom_range(-other.clover_shake_intensity, other.clover_shake_intensity));
26
        shader_reset();
27
        draw_set_alpha(1);
28
    }
29
    draw_set_alpha(1);
30
}
31
else if (other.white_overlay_radius > 0 && instance_exists(obj_player_npc))
32
{
33
    draw_set_color(c_white);
34
    draw_set_alpha(other.circle_alpha);
35
    draw_circle(obj_player_npc.x, obj_player_npc.y, other.white_overlay_radius, false);
36
    draw_set_alpha(1);
37
}