1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
switch attack_tick |
5 |
{ |
6 |
case 20: |
7 |
var attack_instance = instance_create_depth((battle_box.bbox_left + 30), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
8 |
attack_instance.x_target_override = battle_box.bbox_left + 30 |
9 |
attack_instance.y_target_override = battle_box.bbox_top + 30 |
10 |
break |
11 |
case 33: |
12 |
attack_instance = instance_create_depth((battle_box.bbox_right - 30), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
13 |
attack_instance.x_target_override = battle_box.bbox_right - 30 |
14 |
attack_instance.y_target_override = battle_box.bbox_top + 30 |
15 |
break |
16 |
case 46: |
17 |
attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
18 |
attack_instance.x_target_override = battle_box.x |
19 |
attack_instance.y_target_override = battle_box.bbox_top + 30 |
20 |
break |
21 |
case 66: |
22 |
attack_instance = instance_create_depth((battle_box.bbox_left - 20), (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather) |
23 |
attack_instance.x_target_override = battle_box.bbox_right - 30 |
24 |
attack_instance.y_target_override = battle_box.bbox_bottom - 30 |
25 |
break |
26 |
case 79: |
27 |
attack_instance = instance_create_depth((battle_box.bbox_right + 20), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
28 |
attack_instance.x_target_override = battle_box.bbox_left + 30 |
29 |
attack_instance.y_target_override = battle_box.bbox_top + 30 |
30 |
break |
31 |
case 87: |
32 |
var scratch_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
33 |
scratch_instance.attack_delay = 50 |
34 |
break |
35 |
case 92: |
36 |
attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather) |
37 |
attack_instance.x_target_override = battle_box.x |
38 |
attack_instance.y_target_override = battle_box.bbox_bottom - 30 |
39 |
break |
40 |
case 123: |
41 |
scratch_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
42 |
scratch_instance.attack_delay = 1 |
43 |
scratch_instance.image_xscale = -1 |
44 |
break |
45 |
case 200: |
46 |
instance_destroy() |
47 |
break |
48 |
} |
49 |
|
50 |
attack_tick += 1 |