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_act)) |
4 | image_index = 1 |
5 | else |
6 | image_index = 0 |