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 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
8 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
9 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
10 |
break |
11 |
case 45: |
12 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
13 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
14 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
15 |
break |
16 |
case 60: |
17 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
18 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
19 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
20 |
break |
21 |
case 75: |
22 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
23 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_glass) |
24 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
25 |
break |
26 |
case 95: |
27 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
28 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
29 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
30 |
break |
31 |
case 100: |
32 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
33 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
34 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_glass) |
35 |
break |
36 |
case 120: |
37 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
38 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
39 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
40 |
break |
41 |
case 140: |
42 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_glass) |
43 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_glass) |
44 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_glass) |
45 |
break |
46 |
case 160: |
47 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
48 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
49 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
50 |
break |
51 |
case 180: |
52 |
instance_create_depth((battle_box.bbox_left + 5), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
53 |
instance_create_depth((battle_box.bbox_left + 29), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block_hurt) |
54 |
instance_create_depth((battle_box.bbox_left + 53), (battle_box.bbox_top - 24), -100, obj_martlet_attack_block) |
55 |
break |
56 |
case 235: |
57 |
instance_destroy() |
58 |
break |
59 |
} |
60 |
|
61 |
with (obj_martlet_attack_block) |
62 |
vspeed = other.block_vspeed |
63 |
with (obj_martlet_attack_block_hurt) |
64 |
vspeed = other.block_vspeed |
65 |
with (obj_martlet_attack_glass) |
66 |
{ |
67 |
if (hspeed == 0) |
68 |
vspeed = other.block_vspeed |
69 |
} |
70 |
attack_tick += 1 |
71 |
if (global.image_alpha_enemy_attacking >= 0) |
72 |
{ |
73 |
if (bbox_overlay_alpha > 0) |
74 |
bbox_overlay_alpha -= 0.1 |
75 |
} |