1 |
function scr_enemy_attack_trihecta_circle_bouncescr_enemy_attack_trihecta_circle_bouncefunction scr_enemy_attack_trihecta_circle_bounce() //gml_Script_scr_enemy_attack_trihecta_circle_bounce
{
if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_bounce))
{
var random_number = irandom_range(0, 1)
if (random_number == 0)
{
random_number = -1
var bbox_var = obj_dialogue_box_battle_transformation_any.bbox_left
}
else
bbox_var = obj_dialogue_box_battle_transformation_any.bbox_right
for (i = 0; i <= 2; i += 1)
instance_create((bbox_var + random_number * 15 + random_number * i * 22), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5), obj_battle_enemy_attack_trihecta_circle_bounce)
}
} () //gml_Script_scr_enemy_attack_trihecta_circle_bounce |
2 |
{ |
3 |
if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_bounce)) |
4 |
{ |
5 |
var random_number = irandom_range(0, 1) |
6 |
if (random_number == 0) |
7 |
{ |
8 |
random_number = -1 |
9 |
var bbox_var = obj_dialogue_box_battle_transformation_any.bbox_left |
10 |
} |
11 |
else |
12 |
bbox_var = obj_dialogue_box_battle_transformation_any.bbox_right |
13 |
for (i = 0; i <= 2; i += 1) |
14 |
instance_create((bbox_var + random_number * 15 + random_number * i * 22), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5), obj_battle_enemy_attack_trihecta_circle_bounce) |
15 |
} |
16 |
} |