1 | if (!instance_exists(obj_heart_battle_fighting_parent)) |
2 | { |
3 | instance_destroy() |
4 | return; |
5 | } |
6 | x = xstart |
7 | y = ystart |
8 | x += irandom_range(-2, 2) |
9 | y += irandom_range(-2, 2) |
10 | obj_heart_battle_fighting_parent.x = x |
11 | obj_heart_battle_fighting_parent.y = y |
12 | image_index = obj_heart_battle_fighting_parent.image_index |