| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
audio_play_sound(snd_enemy_bullet_shot, 1, 0); |
| 4 |
for (var a = 0; a < array_length_1d(bullet_number); a++) |
| 5 |
{ |
| 6 |
for (var i = 0; i < bullet_number[a]; i++) |
| 7 |
{ |
| 8 |
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet); |
| 9 |
var bullet_arc = ((bullet_number[a] - 1) * bullet_spread) / 2; |
| 10 |
bullet.speed = bullet_speed[a]; |
| 11 |
bullet.direction = (point_direction(x, y, target_x, target_y) - bullet_arc) + (i * bullet_spread); |
| 12 |
} |
| 13 |
} |
| 14 |
if (bullet_count > 0) |
| 15 |
{ |
| 16 |
alarm[0] = 20;gml_Object_obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist_Alarm_0.gmlif (live_call())
return global.live_result;
audio_play_sound(snd_enemy_bullet_shot, 1, 0);
for (var a = 0; a < array_length_1d(bullet_number); a++)
{
for (var i = 0; i < bullet_number[a]; i++)
{
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet);
var bullet_arc = ((bullet_number[a] - 1) * bullet_spread) / 2;
bullet.speed = bullet_speed[a];
bullet.direction = (point_direction(x, y, target_x, target_y) - bullet_arc) + (i * bullet_spread);
}
}
if (bullet_count > 0)
{
alarm[0] = 20;
bullet_count -= 1;
}
else
{
fade_out = true;
}
image_xscale = 1.5;
image_yscale = 1.5; |
| 17 |
bullet_count -= 1; |
| 18 |
} |
| 19 |
else |
| 20 |
{ |
| 21 |
fade_out = true; |
| 22 |
} |
| 23 |
image_xscale = 1.5; |
| 24 |
image_yscale = 1.5; |