1 |
if (!instance_exists(obj_battle_enemy_attack_friendliness_pellets_yellow) && !instance_exists(obj_quote_battle_flowey_intro_parent_yellow) && !instance_exists(obj_battle_fade_out_screen)) |
2 |
{ |
3 |
hit_self_count += global.hit_self; |
4 |
instance_create(367, 134, obj_quote_bubble_battle); |
5 |
if (hit_self_count == 0) |
6 |
instance_create(0, 0, obj_quote_battle_flowey_intro_success_yellow); |
7 |
else if (global.hit_self == false) |
8 |
instance_create(0, 0, obj_quote_battle_flowey_intro_failure_yellow); |
9 |
else if (hit_self_count == 1) |
10 |
instance_create(0, 0, obj_quote_battle_flowey_intro_miss_1_yellow); |
11 |
else if (hit_self_count == 2) |
12 |
instance_create(0, 0, obj_quote_battle_flowey_intro_miss_2_yellow); |
13 |
else if (hit_self_count == 3) |
14 |
instance_create(0, 0, obj_quote_battle_flowey_intro_miss_3_yellow); |
15 |
global.hit_self = false; |
16 |
can_decrease_audio = true; |
17 |
} |
18 |
if (global.hit_self == true && can_decrease_audio == true) |
19 |
{ |
20 |
if (hit_self_count >= 2) |
21 |
{ |
22 |
execute_audio_silence = true; |
23 |
} |
24 |
else |
25 |
{ |
26 |
audio_pitch -= audio_decrease_rate; |
27 |
audio_sound_pitch(mus_floweynew_yellow, audio_pitch); |
28 |
} |
29 |
can_decrease_audio = false; |
30 |
} |
31 |
if (execute_audio_silence == true) |
32 |
{ |
33 |
if (audio_pitch > 0) |
34 |
audio_pitch -= audio_silence_rate; |
35 |
audio_sound_pitch(mus_floweynew_yellow, audio_pitch); |
36 |
if (audio_pitch <= 0) |
37 |
execute_audio_silence = false; |
38 |
} |