1 | if (obj_heart_battle_fighting_parent.vulnerable == true && (!(place_meeting(xprevious, yprevious, obj_heart_hitbox_parent)))) |
2 | { |
3 | var hsc_x_temp = x |
4 | var hsc_y_temp = y |
5 | var hsc_max = 4 |
6 | i = 0 |
7 | while (i < hsc_max) |
8 | { |
9 | x -= lengthdir_x((id_checker.feather_speed / hsc_max), image_angle) |
10 | y -= lengthdir_y((id_checker.feather_speed / hsc_max), image_angle) |
11 | with (obj_heart_hitbox_parent) |
12 | event_user(0) |
13 | if (obj_heart_battle_fighting_parent.vulnerable == false) |
14 | break |
15 | else |
16 | { |
17 | i++ |
18 | continue |
19 | } |
20 | } |
21 | x = hsc_x_temp |
22 | y = hsc_y_temp |
23 | } |