1 |
if (!instance_exists(obj_starlo_boss_body)) |
2 |
{ |
3 |
instance_destroy() |
4 |
return; |
5 |
} |
6 |
if (obj_starlo_boss_body.damage_disjoint_x != 0) |
7 |
{ |
8 |
sprite_index = hurt_sprite |
9 |
return; |
10 |
} |
11 |
if instance_exists(obj_quote_defeat_parent) |
12 |
var text_parent = obj_quote_defeat_parent |
13 |
else |
14 |
text_parent = obj_quote_battle_starlo_parent |
15 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
16 |
{ |
17 |
if (sprite_index != text_parent.portrait_head[text_parent.message_current]) |
18 |
sprite_index = text_parent.portrait_head[text_parent.message_current] |
19 |
} |
20 |
else |
21 |
sprite_index = head_sprite |
22 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
23 |
{ |
24 |
if (text_parent.can_talk == true) |
25 |
{ |
26 |
if (can_talk_no_loop == false) |
27 |
{ |
28 |
image_index = 1 |
29 |
can_talk_no_loop = true |
30 |
} |
31 |
image_speed = global.text_speed * global.talk_speed_martlet * text_parent.hold |
32 |
} |
33 |
else |
34 |
{ |
35 |
can_talk_no_loop = false |
36 |
image_speed = 0 |
37 |
image_index = 0 |
38 |
} |
39 |
} |
40 |
else |
41 |
{ |
42 |
can_talk_no_loop = false |
43 |
image_speed = 0 |
44 |
image_index = 0 |
45 |
} |