1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var ceroba_body = 2833; |
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 |
var i = 0; |
20 |
while (i < image_xscale) |
21 |
{ |
22 |
var xx = lengthdir_x(i, image_angle); |
23 |
var yy = lengthdir_y(i, image_angle); |
24 |
var fireball = instance_create_depth(x + xx, y + yy, depth - 100, obj_ceroba_special_attack_fireball); |
25 |
fireball.direction = 90 + ((i - (bullet_number * 0.5)) * (dir_wiggle / bullet_number)); |
26 |
fireball.speed = 3; |
27 |
i += (image_xscale / bullet_number); |
28 |
} |
29 |
bullet_burst = false; |
30 |
} |