| 1 | if (image_alpha < 1 && can_move == false) |
| 2 | { |
| 3 | image_alpha += 0.1; |
| 4 | if (image_alpha > 1) |
| 5 | image_alpha = 1; |
| 6 | if (image_alpha == 1) |
| 7 | { |
| 8 | image_speed = 0.3; |
| 9 | can_move = true; |
| 10 | } |
| 11 | } |
| 12 | if (instance_exists(obj_heart_battle_fighting_parent)) |
| 13 | { |
| 14 | angle = point_direction(x, y, obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y); |
| 15 | image_angle = angle; |
| 16 | if (can_move == true) |
| 17 | { |
| 18 | x += lengthdir_x(move_speed, angle); |
| 19 | y += lengthdir_y(move_speed, angle); |
| 20 | } |
| 21 | } |