1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
var type = choose(1, 2, 3, 4) |
5 |
switch type |
6 |
{ |
7 |
case 1: |
8 |
instance_create_depth((battle_box.bbox_left - 40), (battle_box.bbox_top - 10), -100, obj_battle_enemy_attack_asgore_hand_horizontal) |
9 |
instance_create_depth((battle_box.bbox_right + 40), battle_box.bbox_bottom, -100, obj_battle_enemy_attack_asgore_hand_horizontal) |
10 |
break |
11 |
case 2: |
12 |
instance_create_depth((battle_box.bbox_left - 40), battle_box.bbox_bottom, -100, obj_battle_enemy_attack_asgore_hand_horizontal) |
13 |
instance_create_depth((battle_box.bbox_right + 40), (battle_box.bbox_top - 10), -100, obj_battle_enemy_attack_asgore_hand_horizontal) |
14 |
break |
15 |
case 3: |
16 |
instance_create_depth((battle_box.bbox_left - 10), (battle_box.bbox_bottom + 40), -100, obj_battle_enemy_attack_asgore_hand_vertical) |
17 |
instance_create_depth((battle_box.bbox_right - 20), (battle_box.bbox_top - 40), -100, obj_battle_enemy_attack_asgore_hand_vertical) |
18 |
break |
19 |
case 4: |
20 |
instance_create_depth((battle_box.bbox_left - 10), (battle_box.bbox_top - 40), -100, obj_battle_enemy_attack_asgore_hand_vertical) |
21 |
instance_create_depth((battle_box.bbox_right - 20), (battle_box.bbox_bottom + 40), -100, obj_battle_enemy_attack_asgore_hand_vertical) |
22 |
break |
23 |
} |
24 |
|
25 |
obj_battle_enemy_attack_asgore_checker.alarm[0] = 90 |
26 |
instance_destroy() |