Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mercy_Step_2

(view raw script w/o annotations or w/e)
1
if (place_meeting(x, y, obj_heart_battle_menu) && obj_heart_battle_menu.image_alpha == 1)
2
    image_index = 1
3
else if (place_meeting(x, y, obj_heart_battle_menu) && instance_exists(obj_heart_battle_menu_mercy))
4
    image_index = 1
5
else
6
    image_index = 0