| 1 |
function scr_enemy_attack_crispy_slashscr_enemy_attack_crispy_slashfunction 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;
}
} () |
| 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 |
{ |
| 8 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1); |
| 9 |
} |
| 10 |
else if (global.timer_attacks_counter == 1) |
| 11 |
{ |
| 12 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2); |
| 13 |
} |
| 14 |
else if (global.timer_attacks_counter == 2) |
| 15 |
{ |
| 16 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1); |
| 17 |
} |
| 18 |
else if (global.timer_attacks_counter == 3) |
| 19 |
{ |
| 20 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2); |
| 21 |
} |
| 22 |
else if (global.timer_attacks_counter == 4) |
| 23 |
{ |
| 24 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_3); |
| 25 |
instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_4); |
| 26 |
} |
| 27 |
global.timer_attacks_counter += 1; |
| 28 |
} |
| 29 |
} |