1 |
function scr_enemy_attack_decibat_wave_multiscr_enemy_attack_decibat_wave_multifunction scr_enemy_attack_decibat_wave_multi() //gml_Script_scr_enemy_attack_decibat_wave_multi
{
global.attack_counter_max = 25
if (global.attack_counter == 0)
{
if (global.timer_attacks_counter == 0 || global.timer_attacks_counter == 2)
instance_create(obj_decibat_body.x, (obj_decibat_body.y - 10), obj_battle_enemy_attack_decibat_wave_blue)
else if (global.timer_attacks_counter == 1)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - 40), obj_dialogue_box_battle_transformation_any.y, obj_battle_enemy_attack_decibat_wave_orange)
else if (global.timer_attacks_counter == 3)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + 40), obj_dialogue_box_battle_transformation_any.y, obj_battle_enemy_attack_decibat_wave_orange)
if (global.timer_attacks_counter >= 3)
global.timer_attacks_counter = 0
else
global.timer_attacks_counter += 1
}
} () //gml_Script_scr_enemy_attack_decibat_wave_multi |
2 |
{ |
3 |
global.attack_counter_max = 25 |
4 |
if (global.attack_counter == 0) |
5 |
{ |
6 |
if (global.timer_attacks_counter == 0 || global.timer_attacks_counter == 2) |
7 |
instance_create(obj_decibat_body.x, (obj_decibat_body.y - 10), obj_battle_enemy_attack_decibat_wave_blue) |
8 |
else if (global.timer_attacks_counter == 1) |
9 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - 40), obj_dialogue_box_battle_transformation_any.y, obj_battle_enemy_attack_decibat_wave_orange) |
10 |
else if (global.timer_attacks_counter == 3) |
11 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + 40), obj_dialogue_box_battle_transformation_any.y, obj_battle_enemy_attack_decibat_wave_orange) |
12 |
if (global.timer_attacks_counter >= 3) |
13 |
global.timer_attacks_counter = 0 |
14 |
else |
15 |
global.timer_attacks_counter += 1 |
16 |
} |
17 |
} |