1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
var side = choose(1, 2, 3) |
5 |
var xx = battle_box.bbox_left + 16 |
6 |
var xx2 = battle_box.bbox_right - 16 |
7 |
var xx3 = battle_box.x |
8 |
var yy = battle_box.bbox_top - 16 |
9 |
var obstacle1 = obj_ceroba_attack_fireball_obstacle |
10 |
var obstacle2 = obj_ceroba_attack_fireball_obstacle |
11 |
var obstacle3 = obj_ceroba_attack_fireball_obstacle |
12 |
var obstacle_speed = 5 |
13 |
switch side |
14 |
{ |
15 |
case 1: |
16 |
obstacle1 = obj_ceroba_attack_bell_obstacle |
17 |
break |
18 |
case 2: |
19 |
obstacle2 = obj_ceroba_attack_bell_obstacle |
20 |
break |
21 |
case 3: |
22 |
obstacle3 = obj_ceroba_attack_bell_obstacle |
23 |
break |
24 |
} |
25 |
|
26 |
instance_create_depth(xx, yy, -50, obstacle1) |
27 |
instance_create_depth(xx2, yy, -50, obstacle2) |
28 |
instance_create_depth(xx3, yy, -50, obstacle3) |
29 |
with (obstacle1) |
30 |
{ |
31 |
direction = 270 |
32 |
speed = obstacle_speed |
33 |
} |
34 |
with (obstacle2) |
35 |
{ |
36 |
direction = 270 |
37 |
speed = obstacle_speed |
38 |
} |
39 |
with (obstacle3) |
40 |
{ |
41 |
direction = 270 |
42 |
speed = obstacle_speed |
43 |
} |
44 |
alarm[0] = obstacle_offsetalarm[0]if live_call()
return global.live_result;
var battle_box = obj_dialogue_box_battle_transformation_any
var side = choose(1, 2, 3)
var xx = battle_box.bbox_left + 16
var xx2 = battle_box.bbox_right - 16
var xx3 = battle_box.x
var yy = battle_box.bbox_top - 16
var obstacle1 = obj_ceroba_attack_fireball_obstacle
var obstacle2 = obj_ceroba_attack_fireball_obstacle
var obstacle3 = obj_ceroba_attack_fireball_obstacle
var obstacle_speed = 5
switch side
{
case 1:
obstacle1 = obj_ceroba_attack_bell_obstacle
break
case 2:
obstacle2 = obj_ceroba_attack_bell_obstacle
break
case 3:
obstacle3 = obj_ceroba_attack_bell_obstacle
break
}
instance_create_depth(xx, yy, -50, obstacle1)
instance_create_depth(xx2, yy, -50, obstacle2)
instance_create_depth(xx3, yy, -50, obstacle3)
with (obstacle1)
{
direction = 270
speed = obstacle_speed
}
with (obstacle2)
{
direction = 270
speed = obstacle_speed
}
with (obstacle3)
{
direction = 270
speed = obstacle_speed
}
alarm[0] = obstacle_offset |