1 |
if (!instance_exists(obj_martlet_g_body)) |
2 |
{ |
3 |
instance_destroy(); |
4 |
exit; |
5 |
} |
6 |
if (obj_martlet_g_body.animating == true) |
7 |
{ |
8 |
if (obj_martlet_g_body.fight_mode == false) |
9 |
x = obj_martlet_g_body.x + 18; |
10 |
else |
11 |
x = obj_martlet_g_body.x + 14; |
12 |
y = obj_martlet_g_body.hand_right_displacement_y; |
13 |
if (obj_martlet_g_body.fight_mode == true) |
14 |
image_angle = fight_mode_angle_max * ((obj_martlet_g_body.image_yscale - 1) / obj_martlet_g_body.max_rise_g); |
15 |
} |
16 |
else |
17 |
{ |
18 |
x = starting_point_x; |
19 |
y = starting_point_y; |
20 |
image_angle = 0; |
21 |
} |
22 |
var text_parent; |
23 |
if (instance_exists(obj_quote_defeat_parent)) |
24 |
text_parent = 2961; |
25 |
else |
26 |
text_parent = 2622; |
27 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
28 |
{ |
29 |
if (sprite_index != text_parent.portrait_hand[text_parent.message_current]) |
30 |
sprite_index = text_parent.portrait_hand[text_parent.message_current]; |
31 |
} |
32 |
else |
33 |
{ |
34 |
sprite_index = hand_right_sprite; |
35 |
} |
36 |
image_speed = 0; |
37 |
image_index = 0; |
38 |
with (obj_martlet_g_hand_right_shadow) |
39 |
event_user(0); |