1 |
if live_call() |
2 |
return global.live_result; |
3 |
var bullet = instance_place(x, y, obj_battle_enemy_attack_bullet_impact) |
4 |
if (bullet != -4) |
5 |
{ |
6 |
audio_play_sound(snd_rock_break, 1, 0) |
7 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (4, 2) |
8 |
if (global.route != 3) |
9 |
{ |
10 |
for (var i = 1; i <= 3; i++) |
11 |
{ |
12 |
var left_debris = instance_create_depth(x, (y - 20 * i), -100, obj_battle_enemy_attack_pillar_debris) |
13 |
with (left_debris) |
14 |
{ |
15 |
hspeed = -0.25 - 0.7 * i |
16 |
vspeed = -6 + (random_range(-2, 2)) |
17 |
gravity = 0.3 |
18 |
} |
19 |
var right_debris = instance_create_depth(x, (y - 20 * i), -100, obj_battle_enemy_attack_pillar_debris) |
20 |
with (right_debris) |
21 |
{ |
22 |
hspeed = 0.25 + 0.7 * i |
23 |
vspeed = -6 + (random_range(-2, 2)) |
24 |
gravity = 0.3 |
25 |
} |
26 |
var small_debris = instance_create_depth(x, (y - 60), -100, obj_battle_enemy_attack_pillar_debris) |
27 |
with (small_debris) |
28 |
{ |
29 |
sprite_index = spr_ceroba_pillar_debris_small |
30 |
vspeed = -7 + (random_range(-1, 1)) |
31 |
gravity = 0.3 |
32 |
hspeed = -6 + 3 * i |
33 |
} |
34 |
} |
35 |
} |
36 |
else |
37 |
{ |
38 |
for (i = 1; i <= 2; i++) |
39 |
{ |
40 |
left_debris = instance_create_depth(x, (y - 20 * i), -100, obj_battle_enemy_attack_pillar_debris) |
41 |
with (left_debris) |
42 |
{ |
43 |
hspeed = -0.25 - 0.7 * i |
44 |
vspeed = -7 |
45 |
gravity = 0.3 |
46 |
} |
47 |
right_debris = instance_create_depth(x, (y - 20 * i), -100, obj_battle_enemy_attack_pillar_debris) |
48 |
with (right_debris) |
49 |
{ |
50 |
hspeed = 0.25 + 0.7 * i |
51 |
vspeed = -7 |
52 |
gravity = 0.3 |
53 |
} |
54 |
small_debris = instance_create_depth(x, (y - 60), -100, obj_battle_enemy_attack_pillar_debris) |
55 |
with (small_debris) |
56 |
{ |
57 |
sprite_index = spr_ceroba_pillar_debris_small |
58 |
vspeed = -7 |
59 |
gravity = 0.3 |
60 |
hspeed = -6 + 3 * i |
61 |
} |
62 |
} |
63 |
} |
64 |
instance_destroy() |
65 |
} |