1 |
image_speed = 0 |
2 |
image_index = 0 |
3 |
if instance_exists(obj_text_battle_move_selected_enemy_fight_parent) |
4 |
{ |
5 |
for (counter = 0; counter < 2; counter += 1) |
6 |
{ |
7 |
if (global.fight_number == 1 && (!instance_exists(obj_text_battle_move_selected_enemy_fight))) |
8 |
global.fight_number = 2 |
9 |
if (global.fight_number == 2 && (!instance_exists(obj_text_battle_move_selected_enemy_fight_2))) |
10 |
global.fight_number = 1 |
11 |
if (global.fight_number == 1 && (!instance_exists(obj_text_battle_move_selected_enemy_fight))) |
12 |
global.fight_number = 3 |
13 |
if (global.fight_number == 3 && (!instance_exists(obj_text_battle_move_selected_enemy_fight_3))) |
14 |
global.fight_number = 1 |
15 |
} |
16 |
} |
17 |
x = obj_dialogue_box_battle.x + 44 |
18 |
if (global.fight_number == 1) |
19 |
y = obj_dialogue_box_battle.y + 36 |
20 |
else if (global.fight_number == 2) |
21 |
y = obj_dialogue_box_battle.y + 68 |
22 |
else if (global.fight_number == 3) |
23 |
y = obj_dialogue_box_battle.y + 100 |
24 |
var player_character = global.player_character |
25 |
switch player_character |
26 |
{ |
27 |
case "CLOVER": |
28 |
sprite_index = spr_heart_yellow_down |
29 |
break |
30 |
default: |
31 |
var soul_mode = global.soul_mode |
32 |
if (soul_mode == "Red") |
33 |
{ |
34 |
sprite_index = spr_heart_red |
35 |
break |
36 |
} |
37 |
else if (soul_mode == "Blue") |
38 |
{ |
39 |
sprite_index = spr_heart_blue_down |
40 |
break |
41 |
} |
42 |
else if (soul_mode == "Green") |
43 |
{ |
44 |
sprite_index = spr_heart_green |
45 |
break |
46 |
} |
47 |
else if (soul_mode == "Purple") |
48 |
{ |
49 |
sprite_index = spr_heart_purple |
50 |
break |
51 |
} |
52 |
else if (soul_mode == "Yellow") |
53 |
{ |
54 |
sprite_index = spr_heart_yellow_up_original |
55 |
break |
56 |
} |
57 |
else if (soul_mode == "Yellow Rhythm") |
58 |
sprite_index = spr_heart_yellow_down |
59 |
} |