Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_game_over_Step_0

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_heart_death_screen_split) && no_loop == false)
2
{
3
    alarm[0] = 45;
gml_Object_obj_game_over_Alarm_0.gml

generate = true; var game_mode = global.game_mode; if (game_mode == "yellow") { scr_audio_stop_sound(0); audio_sound_gain(mus_gameover_yellow, 1, 0); audio_sound_pitch(mus_gameover_yellow, 1); audio_play_sound(mus_gameover_yellow, 20, true); } else { scr_audio_stop_sound(0); audio_sound_gain(mus_gameover, 1, 0); audio_sound_pitch(mus_gameover, 1); audio_play_sound(mus_gameover, 20, true); }
4
    no_loop = true;
5
}
6
if (generate == true && image_alpha != 1)
7
    image_alpha += 0.05;
8
if (image_alpha == 1 && no_loop_2 == false)
9
{
10
    alarm[1] = 30;
gml_Object_obj_game_over_Alarm_1.gml

switch (global.battle_enemy_name) { case "flowey": case "flowey2": instance_create(160, 328, obj_game_over_choice); break; default: instance_create(160, 328, obj_game_over_text); break; }
11
    no_loop_2 = true;
12
}