| 1 |
if (image_alpha < 1 && started == false) |
| 2 |
{ |
| 3 |
image_alpha += 0.05; |
| 4 |
if (image_alpha > 1) |
| 5 |
image_alpha = 1; |
| 6 |
if (image_alpha == 1) |
| 7 |
started = true; |
| 8 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_white)) |
| 9 |
obj_battle_enemy_attack_trihecta_circle_stack_white.image_alpha = image_alpha; |
| 10 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_green)) |
| 11 |
obj_battle_enemy_attack_trihecta_circle_stack_green.image_alpha = image_alpha; |
| 12 |
} |
| 13 |
if (started == true) |
| 14 |
{ |
| 15 |
ds_list_add(x_list, x); |
| 16 |
ds_list_add(y_list, y); |
| 17 |
while (ds_list_size(x_list) > max_points_trail) |
| 18 |
{ |
| 19 |
ds_list_delete(x_list, 0); |
| 20 |
ds_list_delete(y_list, 0); |
| 21 |
} |
| 22 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_white)) |
| 23 |
{ |
| 24 |
with (obj_battle_enemy_attack_trihecta_circle_stack_white) |
| 25 |
event_user(0); |
| 26 |
} |
| 27 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_green)) |
| 28 |
{ |
| 29 |
with (obj_battle_enemy_attack_trihecta_circle_stack_green) |
| 30 |
event_user(0); |
| 31 |
} |
| 32 |
} |
| 33 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && started == true) |
| 34 |
{ |
| 35 |
hsp = x_speed; |
| 36 |
var execute_change = false; |
| 37 |
if (sign(hsp) == -1 && (bbox_left + hsp) <= (obj_dialogue_box_battle_transformation_any.bbox_left + 4)) |
| 38 |
{ |
| 39 |
while ((bbox_left + sign(hsp)) > (obj_dialogue_box_battle_transformation_any.bbox_left + 4)) |
| 40 |
x += sign(hsp); |
| 41 |
x_speed = -x_speed; |
| 42 |
hsp = 0; |
| 43 |
execute_change = true; |
| 44 |
} |
| 45 |
else if (sign(hsp) == 1 && (bbox_right + hsp) >= (obj_dialogue_box_battle_transformation_any.bbox_right - 4)) |
| 46 |
{ |
| 47 |
while ((bbox_right + sign(hsp)) < (obj_dialogue_box_battle_transformation_any.bbox_right - 4)) |
| 48 |
x += sign(hsp); |
| 49 |
x_speed = -x_speed; |
| 50 |
hsp = 0; |
| 51 |
execute_change = true; |
| 52 |
} |
| 53 |
x += hsp; |
| 54 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_white)) |
| 55 |
obj_battle_enemy_attack_trihecta_circle_stack_white.x = x; |
| 56 |
if (instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_green)) |
| 57 |
obj_battle_enemy_attack_trihecta_circle_stack_green.x = x; |
| 58 |
if (execute_change == true) |
| 59 |
event_user(0); |
| 60 |
} |