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 30: |
7 |
var attack_instance = instance_create_depth((battle_box.bbox_right + 30), (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather) |
8 |
attack_instance.x_target_override = battle_box.bbox_left + 15 |
9 |
attack_instance.y_target_override = battle_box.bbox_top + 20 |
10 |
break |
11 |
case 45: |
12 |
attack_instance = instance_create_depth((battle_box.bbox_left - 30), battle_box.y, -100, obj_martlet_attack_splitting_feather) |
13 |
attack_instance.x_target_override = battle_box.bbox_right - 20 |
14 |
attack_instance.y_target_override = battle_box.y |
15 |
break |
16 |
case 60: |
17 |
attack_instance = instance_create_depth((battle_box.bbox_right + 30), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
18 |
attack_instance.x_target_override = battle_box.bbox_left + 30 |
19 |
attack_instance.y_target_override = battle_box.bbox_bottom - 20 |
20 |
break |
21 |
case 80: |
22 |
var meteor = instance_create_depth((battle_box.bbox_right + 60), (battle_box.bbox_top - 240), -100, obj_fmartlet_meteor) |
23 |
meteor.hspeed = -7 |
24 |
break |
25 |
case 100: |
26 |
attack_instance = instance_create_depth((battle_box.bbox_left + 30), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
27 |
attack_instance.x_target_override = battle_box.bbox_right - 20 |
28 |
attack_instance.y_target_override = battle_box.bbox_top + 20 |
29 |
break |
30 |
case 110: |
31 |
meteor = instance_create_depth((battle_box.bbox_left - 70), (battle_box.bbox_bottom + 20), -100, obj_fmartlet_meteor) |
32 |
meteor.hspeed = 4 |
33 |
meteor.vspeed = -22 |
34 |
break |
35 |
case 115: |
36 |
attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 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_top + 20 |
39 |
break |
40 |
case 130: |
41 |
attack_instance = instance_create_depth((battle_box.bbox_right - 30), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
42 |
attack_instance.x_target_override = battle_box.bbox_left + 20 |
43 |
attack_instance.y_target_override = battle_box.bbox_top + 20 |
44 |
break |
45 |
case 185: |
46 |
attack_instance = instance_create_depth((battle_box.bbox_left - 20), (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather) |
47 |
attack_instance.x_target_override = battle_box.bbox_right - 20 |
48 |
attack_instance.y_target_override = battle_box.bbox_bottom - 20 |
49 |
break |
50 |
case 197: |
51 |
attack_instance = instance_create_depth((battle_box.bbox_right + 20), (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather) |
52 |
attack_instance.x_target_override = battle_box.x |
53 |
attack_instance.y_target_override = battle_box.y |
54 |
break |
55 |
case 209: |
56 |
attack_instance = instance_create_depth((battle_box.bbox_right + 20), (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather) |
57 |
attack_instance.x_target_override = battle_box.bbox_left + 20 |
58 |
attack_instance.y_target_override = battle_box.bbox_top + 20 |
59 |
break |
60 |
case 260: |
61 |
instance_destroy() |
62 |
break |
63 |
} |
64 |
|
65 |
attack_tick += 1 |