1 |
function scr_enemy_attack_trihecta_circle_reflectscr_enemy_attack_trihecta_circle_reflectfunction scr_enemy_attack_trihecta_circle_reflect() //gml_Script_scr_enemy_attack_trihecta_circle_reflect
{
if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_reflect))
{
var distance_x = 16
var distance_y = 16
var random_number = irandom_range(1, 4)
if (random_number != 1)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 4 + distance_x), (obj_dialogue_box_battle_transformation_any.bbox_top + 4 + distance_y), obj_battle_enemy_attack_trihecta_circle_reflect)
if (random_number != 2)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 4 - distance_x), (obj_dialogue_box_battle_transformation_any.bbox_top + 4 + distance_y), obj_battle_enemy_attack_trihecta_circle_reflect)
if (random_number != 3)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 4 + distance_x), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4 - distance_y), obj_battle_enemy_attack_trihecta_circle_reflect)
if (random_number != 4)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 4 - distance_x), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4 - distance_y), obj_battle_enemy_attack_trihecta_circle_reflect)
}
} () //gml_Script_scr_enemy_attack_trihecta_circle_reflect |
2 |
{ |
3 |
if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_reflect)) |
4 |
{ |
5 |
var distance_x = 16 |
6 |
var distance_y = 16 |
7 |
var random_number = irandom_range(1, 4) |
8 |
if (random_number != 1) |
9 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 4 + distance_x), (obj_dialogue_box_battle_transformation_any.bbox_top + 4 + distance_y), obj_battle_enemy_attack_trihecta_circle_reflect) |
10 |
if (random_number != 2) |
11 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 4 - distance_x), (obj_dialogue_box_battle_transformation_any.bbox_top + 4 + distance_y), obj_battle_enemy_attack_trihecta_circle_reflect) |
12 |
if (random_number != 3) |
13 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 4 + distance_x), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4 - distance_y), obj_battle_enemy_attack_trihecta_circle_reflect) |
14 |
if (random_number != 4) |
15 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 4 - distance_x), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4 - distance_y), obj_battle_enemy_attack_trihecta_circle_reflect) |
16 |
} |
17 |
} |