1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
var ball_offset = 30 |
5 |
var bomb = noone |
6 |
switch attack_tick |
7 |
{ |
8 |
case 30: |
9 |
bomb = instance_create_depth(battle_box.x, (battle_box.bbox_top - 30), -100, obj_battle_enemy_attack_axis_bomb_geno) |
10 |
break |
11 |
case 70: |
12 |
var laser = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_axis_blue_laser_geno) |
13 |
laser.vspeed = -3 |
14 |
break |
15 |
case 100: |
16 |
laser = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_battle_enemy_attack_axis_orange_laser_geno) |
17 |
laser.hspeed = 3 |
18 |
laser.image_angle = 90 |
19 |
break |
20 |
case 110: |
21 |
laser = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_axis_blue_laser_geno) |
22 |
laser.vspeed = -3 |
23 |
break |
24 |
case 140: |
25 |
bomb = instance_create_depth((battle_box.bbox_right + 20), (battle_box.y - 30), -100, obj_battle_enemy_attack_axis_bomb_geno) |
26 |
break |
27 |
case 160: |
28 |
laser = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_battle_enemy_attack_axis_blue_laser_geno) |
29 |
laser.hspeed = 3 |
30 |
laser.image_angle = 90 |
31 |
break |
32 |
case 190: |
33 |
bomb = instance_create_depth((battle_box.bbox_left - 20), (battle_box.y + 30), -100, obj_battle_enemy_attack_axis_bomb_geno) |
34 |
break |
35 |
case 280: |
36 |
instance_destroy() |
37 |
break |
38 |
} |
39 |
|
40 |
if (bomb != noone) |
41 |
{ |
42 |
if (bomb.x < battle_box.bbox_left) |
43 |
bomb.gravity_direction = 0 |
44 |
if (bomb.x > battle_box.bbox_right) |
45 |
bomb.gravity_direction = 180 |
46 |
if (bomb.y > battle_box.bbox_bottom) |
47 |
bomb.gravity_direction = 90 |
48 |
if (bomb.y < battle_box.bbox_top) |
49 |
bomb.gravity_direction = 270 |
50 |
} |
51 |
attack_tick += 1 |