1 |
if live_call() |
2 |
return global.live_result; |
3 |
var ceroba_body = obj_ceroba_body_pacifist_phase_2 |
4 |
var ceroba_body_frame = floor(ceroba_body.image_index) |
5 |
if (ceroba_body_frame >= frame_current) |
6 |
{ |
7 |
if (ceroba_body_frame == attack_frame[attack_frame_current]) |
8 |
{ |
9 |
if (attack_frame_current < (array_length(attack_frame) - 1)) |
10 |
attack_frame_current += 1 |
11 |
bullet_burst = true |
12 |
} |
13 |
frame_current = ceroba_body_frame |
14 |
} |
15 |
var bullet_number = 6 |
16 |
var dir_wiggle = 90 |
17 |
if (bullet_burst == true) |
18 |
{ |
19 |
for (var i = 0; i < image_xscale; i += (image_xscale / bullet_number)) |
20 |
{ |
21 |
var xx = lengthdir_x(i, image_angle) |
22 |
var yy = lengthdir_y(i, image_angle) |
23 |
var fireball = instance_create_depth((x + xx), (y + yy), (depth - 100), obj_ceroba_special_attack_fireball) |
24 |
fireball.direction = 90 + (i - bullet_number * 0.5) * (dir_wiggle / bullet_number) |
25 |
fireball.speed = 3 |
26 |
} |
27 |
bullet_burst = false |
28 |
} |