| 1 |
if (image_alpha < 1) |
| 2 |
{ |
| 3 |
image_alpha += 0.1; |
| 4 |
if (image_alpha > 1) |
| 5 |
image_alpha = 1; |
| 6 |
} |
| 7 |
if (can_move == false && set_alarm == false) |
| 8 |
{ |
| 9 |
angle = point_direction(x, y, round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)), obj_dialogue_box_battle_transformation_any.bbox_top + center_disjoint); |
| 10 |
x += lengthdir_x(move_speed, angle); |
| 11 |
y += lengthdir_y(move_speed, angle); |
| 12 |
if (x == round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)) && y == (obj_dialogue_box_battle_transformation_any.bbox_top + center_disjoint)) |
| 13 |
{ |
| 14 |
alarm[0] = alarm_time; |
| 15 |
set_alarm = true; |
| 16 |
} |
| 17 |
} |
| 18 |
if (instance_exists(obj_heart_battle_fighting_parent) && can_move == true) |
| 19 |
{ |
| 20 |
angle = point_direction(x, y, obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y); |
| 21 |
if (can_move == true) |
| 22 |
{ |
| 23 |
x += lengthdir_x(move_speed, angle); |
| 24 |
y += lengthdir_y(move_speed, angle); |
| 25 |
} |
| 26 |
} |