1 |
function scr_enemy_attack_know_cone_figscr_enemy_attack_know_cone_figfunction scr_enemy_attack_know_cone_fig() //gml_Script_scr_enemy_attack_know_cone_fig
{
var distance_factor_x = 15
var distance_factor_y = 20
var random_generator = irandom_range(0, 1)
var random_generator_y = irandom_range(1, 3)
if (random_generator == 0)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor_x), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - distance_factor_y * random_generator_y), obj_battle_enemy_attack_know_cone_fig)
else if (random_generator == 1)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor_x), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - distance_factor_y * random_generator_y), obj_battle_enemy_attack_know_cone_fig)
} () //gml_Script_scr_enemy_attack_know_cone_fig |
2 |
{ |
3 |
var distance_factor_x = 15 |
4 |
var distance_factor_y = 20 |
5 |
var random_generator = irandom_range(0, 1) |
6 |
var random_generator_y = irandom_range(1, 3) |
7 |
if (random_generator == 0) |
8 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor_x), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - distance_factor_y * random_generator_y), obj_battle_enemy_attack_know_cone_fig) |
9 |
else if (random_generator == 1) |
10 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor_x), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - distance_factor_y * random_generator_y), obj_battle_enemy_attack_know_cone_fig) |
11 |
} |