Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_npc_fade

(view raw script w/o annotations or w/e)
1
function scr_npc_fade
scr_npc_fade

function scr_npc_fade() //gml_Script_scr_npc_fade { solid = false if (image_alpha > 0) image_alpha -= 0.2 if (image_alpha == 0 && fade_kill == true) instance_destroy() }
() //gml_Script_scr_npc_fade
2
{
3
    solid = false
4
    if (image_alpha > 0)
5
        image_alpha -= 0.2
6
    if (image_alpha == 0 && fade_kill == true)
7
        instance_destroy()
8
}