| 1 |
if (state == "animate") |
| 2 |
{ |
| 3 |
if (sprite_index == sprite_rise[0] || sprite_index == sprite_rise[1]) |
| 4 |
{ |
| 5 |
state = "move"; |
| 6 |
sprite_index = sprite_move[side]; |
| 7 |
image_speed = image_speed_move; |
| 8 |
image_index = 0; |
| 9 |
move_speed = 0; |
| 10 |
if (critical == false) |
| 11 |
move_miss_count = irandom_range(0, 2); |
| 12 |
else |
| 13 |
move_miss_count = 1; |
| 14 |
move_miss_lock = false; |
| 15 |
move_sign_store = 0; |
| 16 |
} |
| 17 |
else if (sprite_index == sprite_sink[0] || sprite_index == sprite_sink[1]) |
| 18 |
{ |
| 19 |
instance_destroy(); |
| 20 |
} |
| 21 |
else if (sprite_index == sprite_fly_begin[0] || sprite_index == sprite_fly_begin[1]) |
| 22 |
{ |
| 23 |
state = "fly"; |
| 24 |
sprite_index = sprite_fly[side]; |
| 25 |
image_speed = image_speed_fly; |
| 26 |
image_index = 0; |
| 27 |
global.id_store = id; |
| 28 |
instance_create(x, y, obj_battle_enemy_attack_dunebud_chase_particles); |
| 29 |
if (side == 0) |
| 30 |
{ |
| 31 |
y += fly_speed; |
| 32 |
if (bbox_bottom >= (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5)) |
| 33 |
{ |
| 34 |
y = obj_dialogue_box_battle_transformation_any.bbox_bottom - 5; |
| 35 |
state = "animate"; |
| 36 |
sprite_index = sprite_fly_end[side]; |
| 37 |
image_speed = image_speed_fly_end; |
| 38 |
image_index = 0; |
| 39 |
} |
| 40 |
} |
| 41 |
else |
| 42 |
{ |
| 43 |
y -= fly_speed; |
| 44 |
if (bbox_top <= (obj_dialogue_box_battle_transformation_any.bbox_top + 5)) |
| 45 |
{ |
| 46 |
y = obj_dialogue_box_battle_transformation_any.bbox_top + 5; |
| 47 |
state = "animate"; |
| 48 |
sprite_index = sprite_fly_end[side]; |
| 49 |
image_speed = image_speed_fly_end; |
| 50 |
image_index = 0; |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
else if (sprite_index == sprite_fly_end[0] || sprite_index == sprite_fly_end[1]) |
| 55 |
{ |
| 56 |
state = "move"; |
| 57 |
if (side == 0) |
| 58 |
side = 1; |
| 59 |
else |
| 60 |
side = 0; |
| 61 |
sprite_index = sprite_move[side]; |
| 62 |
image_speed = image_speed_move; |
| 63 |
image_index = 0; |
| 64 |
move_speed = 0; |
| 65 |
move_miss_count = irandom_range(0, 2); |
| 66 |
move_miss_lock = false; |
| 67 |
move_sign_store = 0; |
| 68 |
} |
| 69 |
} |