1 |
function scr_enemy_attack_frostermit_snowflakes_blueberriesscr_enemy_attack_frostermit_snowflakes_blueberriesfunction scr_enemy_attack_frostermit_snowflakes_blueberries() //gml_Script_scr_enemy_attack_frostermit_snowflakes_blueberries
{
global.attack_counter_max = 40
if (global.attack_counter == 0)
{
var distance_x = -15
var distance_y = 20
var max_variations = 6
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left - distance_x + (obj_dialogue_box_battle_transformation_any.bbox_right + distance_x * 2 - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations * (irandom_range(0, max_variations))), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_y), obj_battle_enemy_attack_frostermit_snowflakes)
var distance_factor = 15
var random_generator_1 = irandom_range(0, 1)
var random_generator_2 = irandom_range(0, 4)
if (random_generator_1 == 0)
{
if (random_generator_2 > 0)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white)
else
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry)
}
else if (random_generator_1 == 1)
{
if (random_generator_2 > 0)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white)
else
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry)
}
}
} () //gml_Script_scr_enemy_attack_frostermit_snowflakes_blueberries |
2 |
{ |
3 |
global.attack_counter_max = 40 |
4 |
if (global.attack_counter == 0) |
5 |
{ |
6 |
var distance_x = -15 |
7 |
var distance_y = 20 |
8 |
var max_variations = 6 |
9 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left - distance_x + (obj_dialogue_box_battle_transformation_any.bbox_right + distance_x * 2 - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations * (irandom_range(0, max_variations))), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_y), obj_battle_enemy_attack_frostermit_snowflakes) |
10 |
var distance_factor = 15 |
11 |
var random_generator_1 = irandom_range(0, 1) |
12 |
var random_generator_2 = irandom_range(0, 4) |
13 |
if (random_generator_1 == 0) |
14 |
{ |
15 |
if (random_generator_2 > 0) |
16 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white) |
17 |
else |
18 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry) |
19 |
} |
20 |
else if (random_generator_1 == 1) |
21 |
{ |
22 |
if (random_generator_2 > 0) |
23 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white) |
24 |
else |
25 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry) |
26 |
} |
27 |
} |
28 |
} |