1 |
if (transform_direction == 0 || transform_direction == 2) |
2 |
{ |
3 |
if (width_increase_type == 1) |
4 |
{ |
5 |
if (image_xscale > sprite_width_end) |
6 |
{ |
7 |
image_xscale -= sprite_width_increase; |
8 |
if (image_xscale < sprite_width_end) |
9 |
image_xscale = sprite_width_end; |
10 |
} |
11 |
} |
12 |
else if (width_increase_type == 0) |
13 |
{ |
14 |
if (image_xscale < sprite_width_end) |
15 |
{ |
16 |
image_xscale += sprite_width_increase; |
17 |
if (image_xscale > sprite_width_end) |
18 |
image_xscale = sprite_width_end; |
19 |
} |
20 |
} |
21 |
if (x_increase_type == 0) |
22 |
{ |
23 |
if (x > destination_x) |
24 |
{ |
25 |
x += x_increase; |
26 |
if (x < destination_x) |
27 |
x = destination_x; |
28 |
} |
29 |
} |
30 |
else if (x_increase_type == 1) |
31 |
{ |
32 |
if (x < destination_x) |
33 |
{ |
34 |
x += x_increase; |
35 |
if (x > destination_x) |
36 |
x = destination_x; |
37 |
} |
38 |
} |
39 |
if (image_xscale == sprite_width_end && x == destination_x && transform_direction != 2) |
40 |
transform_direction = 1; |
41 |
} |
42 |
if (transform_direction == 1 || transform_direction == 2) |
43 |
{ |
44 |
if (height_increase_type == 1) |
45 |
{ |
46 |
if (image_yscale > sprite_height_end) |
47 |
{ |
48 |
image_yscale -= sprite_height_increase; |
49 |
if (image_yscale < sprite_height_end) |
50 |
image_yscale = sprite_height_end; |
51 |
} |
52 |
} |
53 |
else if (height_increase_type == 0) |
54 |
{ |
55 |
if (image_yscale < sprite_height_end) |
56 |
{ |
57 |
image_yscale += sprite_height_increase; |
58 |
if (image_yscale > sprite_height_end) |
59 |
image_yscale = sprite_height_end; |
60 |
} |
61 |
} |
62 |
if (y_increase_type == 0) |
63 |
{ |
64 |
if (y > destination_y) |
65 |
{ |
66 |
y += y_increase; |
67 |
if (y < destination_y) |
68 |
y = destination_y; |
69 |
} |
70 |
} |
71 |
else if (y_increase_type == 1) |
72 |
{ |
73 |
if (y < destination_y) |
74 |
{ |
75 |
y += y_increase; |
76 |
if (y > destination_y) |
77 |
y = destination_y; |
78 |
} |
79 |
} |
80 |
if (image_yscale == sprite_height_end && y == destination_y && transform_direction != 2) |
81 |
transform_direction = 0; |
82 |
} |
83 |
if (image_xscale == sprite_width_end && image_yscale == sprite_height_end && x == destination_x && y == destination_y && no_loop == false) |
84 |
{ |
85 |
alarm[0] = 2;gml_Object_obj_dialogue_box_battle_transformation_any_in_Alarm_0.gmlglobal.enemy_attacking = false;
instance_create(32, 250, obj_dialogue_box_battle);
if (global.last_text_move_select == -1)
script_execute(scr_late_audio_enemy_encounter);
if (global.last_text_move_select < 1)
global.last_text_move_select += 1;
var game_mode = global.game_mode;
if (game_mode == "customs")
{
global.determine_attack_priority = 1;
script_execute(scr_determine_enemy_attack);
}
else if (game_mode == "yellow")
{
global.determine_attack_priority = 1;
script_execute(scr_determine_enemy_attack_yellow);
}
if (global.important_cutscene == false)
{
with (obj_heart_battle_menu)
event_user(0);
}
instance_destroy(); |
86 |
no_loop = true; |
87 |
} |