| 1 |
if (instance_exists(obj_heart_battle_fighting_parent)) |
| 2 |
{ |
| 3 |
x = obj_heart_battle_fighting_parent.x; |
| 4 |
y = obj_heart_battle_fighting_parent.y; |
| 5 |
} |
| 6 |
if (image_index == 7) |
| 7 |
{ |
| 8 |
global.current_pp_self += 1; |
| 9 |
global.current_pp_self = clamp(global.current_pp_self, 0, 1); |
| 10 |
instance_create(x, y, obj_heart_battle_effect_glow); |
| 11 |
audio_play_sound(snd_equip_armor, 1, 0); |
| 12 |
} |
| 13 |
if (fade_out == true) |
| 14 |
{ |
| 15 |
image_alpha -= 0.15; |
| 16 |
if (image_alpha < 0) |
| 17 |
{ |
| 18 |
if (!alarm[0]) |
| 19 |
alarm[0] = 30; |
| 20 |
} |
| 21 |
} |