1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
var current_side = choose("hor", "ver") |
5 |
if (current_side == "hor") |
6 |
{ |
7 |
var spawn_x = choose((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)) |
8 |
var spawn_y = irandom_range((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80)) |
9 |
} |
10 |
else |
11 |
{ |
12 |
spawn_y = choose((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80)) |
13 |
spawn_x = irandom_range((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)) |
14 |
} |
15 |
var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss) |
16 |
ball.direction = point_direction(ball.x, ball.y, battle_box.x, battle_box.y) |
17 |
ball.speed = 3 |
18 |
if (attack_count > 0) |
19 |
{ |
20 |
attack_count -= 1 |
21 |
alarm[0] = attack_intervalalarm[0]if live_call()
return global.live_result;
var battle_box = obj_dialogue_box_battle_transformation_any
var current_side = choose("hor", "ver")
if (current_side == "hor")
{
var spawn_x = choose((battle_box.bbox_left - 80), (battle_box.bbox_right + 80))
var spawn_y = irandom_range((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80))
}
else
{
spawn_y = choose((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80))
spawn_x = irandom_range((battle_box.bbox_left - 80), (battle_box.bbox_right + 80))
}
var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss)
ball.direction = point_direction(ball.x, ball.y, battle_box.x, battle_box.y)
ball.speed = 3
if (attack_count > 0)
{
attack_count -= 1
alarm[0] = attack_interval
}
else
instance_destroy() |
22 |
} |
23 |
else |
24 |
instance_destroy() |