| 1 | if (!instance_exists(obj_heart_battle_fighting_parent)) |
| 2 | { |
| 3 | instance_destroy(); |
| 4 | exit; |
| 5 | } |
| 6 | x += lengthdir_x(fly_speed, angle); |
| 7 | y += lengthdir_y(fly_speed, angle); |
| 8 | image_angle = angle; |
| 9 | if (fade_out == true) |
| 10 | { |
| 11 | image_alpha -= 0.1; |
| 12 | if (image_alpha < 0) |
| 13 | image_alpha = 0; |
| 14 | if (image_alpha == 0) |
| 15 | instance_destroy(); |
| 16 | } |