Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_take_aim_slow_checker_Step_0

(view raw script w/o annotations or w/e)
1
var song_pitch = audio_sound_get_pitch(mus_showdown);
2
if (song_pitch > 0.75)
3
    audio_sound_pitch(mus_showdown, song_pitch - 0.01);
4
if (starlo_take_aim_fade_out == true)
5
{
6
    if (starlo_take_aim_overlay_alpha > 0.1)
7
    {
8
        starlo_take_aim_overlay_alpha = lerp(starlo_take_aim_overlay_alpha, 0, 0.2);
9
    }
10
    else
11
    {
12
        starlo_take_aim_overlay_alpha = 0;
13
        instance_destroy();
14
    }
15
}
16
else if (starlo_take_aim_overlay_alpha < 0.98)
17
{
18
    starlo_take_aim_overlay_alpha = lerp(starlo_take_aim_overlay_alpha, 1, 0.15);
19
}
20
else
21
{
22
    starlo_take_aim_overlay_alpha = 1;
23
}