1 |
if (image_alpha < 1) |
2 |
{ |
3 |
if (image_alpha < 1) |
4 |
{ |
5 |
image_alpha += 0.1 |
6 |
if (image_alpha >= 1) |
7 |
{ |
8 |
image_alpha = 1 |
9 |
if ((!alarm[0]) && move == false) |
10 |
alarm[0] = 15 |
11 |
} |
12 |
} |
13 |
} |
14 |
var readjust = false |
15 |
var box = obj_dialogue_box_battle_transformation_any |
16 |
if (bbox_left <= (box.bbox_left + 4)) |
17 |
{ |
18 |
if (direction < 180 && direction > 0) |
19 |
direction -= 90 |
20 |
else |
21 |
direction += 90 |
22 |
readjust = true |
23 |
} |
24 |
if (bbox_right >= (box.bbox_right - 4)) |
25 |
{ |
26 |
if (direction < 180 && direction > 0) |
27 |
direction += 90 |
28 |
else |
29 |
direction -= 90 |
30 |
readjust = true |
31 |
} |
32 |
if (bbox_top <= (box.bbox_top + 4)) |
33 |
{ |
34 |
if (direction < 90) |
35 |
direction -= 90 |
36 |
else |
37 |
direction += 90 |
38 |
readjust = true |
39 |
} |
40 |
if (bbox_bottom >= (box.bbox_bottom - 4)) |
41 |
{ |
42 |
if (direction > 270) |
43 |
direction += 90 |
44 |
else |
45 |
direction -= 90 |
46 |
readjust = true |
47 |
} |
48 |
if (readjust == true) |
49 |
{ |
50 |
x += lengthdir_x(1, direction) |
51 |
y += lengthdir_y(1, direction) |
52 |
switch attack_color |
53 |
{ |
54 |
case "white": |
55 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_white) |
56 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_blue) |
57 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_orange) |
58 |
if (!instance_exists(obj_battle_enemy_attack_tellyvis_logo_white)) |
59 |
instance_create_depth(x, y, obj_heart_battle_fighting_parent.depth, obj_battle_enemy_attack_tellyvis_logo_white) |
60 |
image_blend = c_white |
61 |
attack_color = "blue" |
62 |
break |
63 |
case "blue": |
64 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_white) |
65 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_blue) |
66 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_orange) |
67 |
if (!instance_exists(obj_battle_enemy_attack_tellyvis_logo_blue)) |
68 |
instance_create_depth(x, y, obj_heart_battle_fighting_parent.depth, obj_battle_enemy_attack_tellyvis_logo_blue) |
69 |
image_blend = make_color_rgb(0, 162, 232) |
70 |
attack_color = "orange" |
71 |
break |
72 |
case "orange": |
73 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_white) |
74 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_blue) |
75 |
instance_destroy(obj_battle_enemy_attack_tellyvis_logo_orange) |
76 |
if (!instance_exists(obj_battle_enemy_attack_tellyvis_logo_orange)) |
77 |
instance_create_depth(x, y, obj_heart_battle_fighting_parent.depth, obj_battle_enemy_attack_tellyvis_logo_orange) |
78 |
image_blend = c_orange |
79 |
attack_color = "white" |
80 |
break |
81 |
} |
82 |
|
83 |
} |