1 |
function scr_enemy_attack_penilla_drawingscr_enemy_attack_penilla_drawingfunction scr_enemy_attack_penilla_drawing() //gml_Script_scr_enemy_attack_penilla_drawing
{
var distance = 20
var max_variations = 4
var sector = irandom_range(0, 1)
var sector_2 = irandom_range(0, 1)
if (sector == 0)
{
if (sector_2 == 0)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance + (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_top) / max_variations * (irandom_range(0, max_variations))), obj_battle_enemy_attack_penilla_pencil)
else if (sector_2 == 1)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance + (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_top) / max_variations * (irandom_range(0, max_variations))), obj_battle_enemy_attack_penilla_pencil)
}
else if (sector == 1)
{
if (sector_2 == 0)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance + (obj_dialogue_box_battle_transformation_any.bbox_right + distance * 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), obj_battle_enemy_attack_penilla_pencil)
else if (sector_2 == 1)
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance + (obj_dialogue_box_battle_transformation_any.bbox_right + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations * (irandom_range(0, max_variations))), (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance), obj_battle_enemy_attack_penilla_pencil)
}
} () //gml_Script_scr_enemy_attack_penilla_drawing |
2 |
{ |
3 |
var distance = 20 |
4 |
var max_variations = 4 |
5 |
var sector = irandom_range(0, 1) |
6 |
var sector_2 = irandom_range(0, 1) |
7 |
if (sector == 0) |
8 |
{ |
9 |
if (sector_2 == 0) |
10 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance + (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_top) / max_variations * (irandom_range(0, max_variations))), obj_battle_enemy_attack_penilla_pencil) |
11 |
else if (sector_2 == 1) |
12 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance + (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_top) / max_variations * (irandom_range(0, max_variations))), obj_battle_enemy_attack_penilla_pencil) |
13 |
} |
14 |
else if (sector == 1) |
15 |
{ |
16 |
if (sector_2 == 0) |
17 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance + (obj_dialogue_box_battle_transformation_any.bbox_right + distance * 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), obj_battle_enemy_attack_penilla_pencil) |
18 |
else if (sector_2 == 1) |
19 |
instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance + (obj_dialogue_box_battle_transformation_any.bbox_right + distance * 2 - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations * (irandom_range(0, max_variations))), (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance), obj_battle_enemy_attack_penilla_pencil) |
20 |
} |
21 |
} |