1 |
hit = false |
2 |
if place_meeting(x, y, obj_battle_enemy_attack_parent) |
3 |
{ |
4 |
with (obj_heart_battle_fighting_parent) |
5 |
{ |
6 |
collide_id = instance_place(x, y, obj_battle_enemy_attack_parent) |
7 |
damage_number = collide_id.damage_number |
8 |
} |
9 |
hit = true |
10 |
} |
11 |
if (place_meeting(x, y, obj_battle_enemy_attack_orange_parent) && obj_heart_battle_fighting_parent.hsp == 0 && obj_heart_battle_fighting_parent.vsp == 0) |
12 |
{ |
13 |
with (obj_heart_battle_fighting_parent) |
14 |
{ |
15 |
collide_id = instance_place(x, y, obj_battle_enemy_attack_orange_parent) |
16 |
damage_number = collide_id.damage_number |
17 |
} |
18 |
hit = true |
19 |
} |
20 |
if (place_meeting(x, y, obj_battle_enemy_attack_blue_parent) && (obj_heart_battle_fighting_parent.hsp != 0 || obj_heart_battle_fighting_parent.vsp != 0)) |
21 |
{ |
22 |
with (obj_heart_battle_fighting_parent) |
23 |
{ |
24 |
collide_id = instance_place(x, y, obj_battle_enemy_attack_blue_parent) |
25 |
damage_number = collide_id.damage_number |
26 |
} |
27 |
hit = true |
28 |
} |
29 |
event_user(1) |