Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_slow_surround_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
        starlo_take_aim_overlay_alpha = lerp(starlo_take_aim_overlay_alpha, 0, 0.2)
8
    else
9
    {
10
        starlo_take_aim_overlay_alpha = 0
11
        instance_destroy()
12
    }
13
}
14
else if (starlo_take_aim_overlay_alpha < 0.98)
15
    starlo_take_aim_overlay_alpha = lerp(starlo_take_aim_overlay_alpha, 1, 0.15)
16
else
17
    starlo_take_aim_overlay_alpha = 1