1 |
if live_call() |
2 |
return global.live_result; |
3 |
audio_play_sound(choose(220, 398, 221, 222), 1, 0) |
4 |
var shard_number = 4 |
5 |
for (var i = 0; i < shard_number; i++) |
6 |
instance_create_depth(x, (y + vspeed * 2), (depth - 1), obj_martlet_attack_glass_shard) |
7 |
with (instance_place((x - 1), y, obj_martlet_attack_glass)) |
8 |
{ |
9 |
if (direction == other.direction) |
10 |
destroy_timer = 1 |
11 |
} |
12 |
with (instance_place((x + 1), y, obj_martlet_attack_glass)) |
13 |
{ |
14 |
if (direction == other.direction) |
15 |
destroy_timer = 1 |
16 |
} |
17 |
with (instance_place(x, (y - 1), obj_martlet_attack_glass)) |
18 |
{ |
19 |
if (direction == other.direction) |
20 |
destroy_timer = 1 |
21 |
} |
22 |
with (instance_place(x, (y + 1), obj_martlet_attack_glass)) |
23 |
{ |
24 |
if (direction == other.direction) |
25 |
destroy_timer = 1 |
26 |
} |