1 |
function scr_enemy_attack_crispy_slashscr_enemy_attack_crispy_slashfunction scr_enemy_attack_crispy_slash() //gml_Script_scr_enemy_attack_crispy_slash
{
global.attack_counter_max = 30
if (global.attack_counter == 0 && global.timer_attacks_counter < 5)
{
if (global.timer_attacks_counter == 0)
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1)
else if (global.timer_attacks_counter == 1)
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2)
else if (global.timer_attacks_counter == 2)
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1)
else if (global.timer_attacks_counter == 3)
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2)
else if (global.timer_attacks_counter == 4)
{
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_3)
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_4)
}
global.timer_attacks_counter += 1
}
} () //gml_Script_scr_enemy_attack_crispy_slash |
2 |
{ |
3 |
global.attack_counter_max = 30 |
4 |
if (global.attack_counter == 0 && global.timer_attacks_counter < 5) |
5 |
{ |
6 |
if (global.timer_attacks_counter == 0) |
7 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1) |
8 |
else if (global.timer_attacks_counter == 1) |
9 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2) |
10 |
else if (global.timer_attacks_counter == 2) |
11 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1) |
12 |
else if (global.timer_attacks_counter == 3) |
13 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2) |
14 |
else if (global.timer_attacks_counter == 4) |
15 |
{ |
16 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_3) |
17 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_4) |
18 |
} |
19 |
global.timer_attacks_counter += 1 |
20 |
} |
21 |
} |