Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_frostermit_dead_Create_0

(view raw script w/o annotations or w/e)
1
var enemy_mode = global.enemy_mode
2
if (enemy_mode == 0)
3
    sprite_index = spr_frostermit_smashed
4
else if (enemy_mode == 1)
5
    sprite_index = spr_frostermit_dead
6
image_alpha = 0
7
script_execute(gml_Script_scr_enemy_defragment)
8
if (!audio_is_playing(snd_monster_damage_death))
9
    audio_play_sound(snd_monster_damage_death, 20, 0)