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