Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_train_tracks_Step_0

(view raw script w/o annotations or w/e)
1
if fade_out
2
{
3
    image_alpha = lerp(image_alpha, 0, 0.2)
4
    if (image_alpha < 0.1)
5
    {
6
        instance_destroy()
7
        return;
8
    }
9
    return;
10
}
11
image_alpha = lerp(image_alpha, image_alpha_max, 0.18)
12
if (image_alpha > (image_alpha_max - 0.01))
13
    image_alpha = image_alpha_max