1 |
function scr_enemy_attack_decibat_wave_orangescr_enemy_attack_decibat_wave_orangefunction scr_enemy_attack_decibat_wave_orange() //gml_Script_scr_enemy_attack_decibat_wave_orange
{
if (global.attack_counter == 0)
global.timer_attacks_switch = false
if (global.timer_attacks_switch == false)
global.attack_counter_max = 3
if (global.attack_counter == 0 && global.timer_attacks_counter < 3)
{
if (global.timer_attacks_counter_2 == 0)
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
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)
global.timer_attacks_counter += 1
if (global.timer_attacks_counter == 3)
{
global.timer_attacks_switch = true
global.attack_counter_max = 30
global.timer_attacks_counter = 0
if (global.timer_attacks_counter_2 >= 1)
global.timer_attacks_counter_2 = 0
else
global.timer_attacks_counter_2 += 1
}
}
} () //gml_Script_scr_enemy_attack_decibat_wave_orange |
2 |
{ |
3 |
if (global.attack_counter == 0) |
4 |
global.timer_attacks_switch = false |
5 |
if (global.timer_attacks_switch == false) |
6 |
global.attack_counter_max = 3 |
7 |
if (global.attack_counter == 0 && global.timer_attacks_counter < 3) |
8 |
{ |
9 |
if (global.timer_attacks_counter_2 == 0) |
10 |
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) |
11 |
else |
12 |
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) |
13 |
global.timer_attacks_counter += 1 |
14 |
if (global.timer_attacks_counter == 3) |
15 |
{ |
16 |
global.timer_attacks_switch = true |
17 |
global.attack_counter_max = 30 |
18 |
global.timer_attacks_counter = 0 |
19 |
if (global.timer_attacks_counter_2 >= 1) |
20 |
global.timer_attacks_counter_2 = 0 |
21 |
else |
22 |
global.timer_attacks_counter_2 += 1 |
23 |
} |
24 |
} |
25 |
} |