1 |
for (var i = 0; i < bullet_number; i++) |
2 |
{ |
3 |
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet) |
4 |
bullet.attack_dir = direction + (i + 1) * (360 / bullet_number) |
5 |
bullet.creator = id |
6 |
if (bullet.attack_dir > 360) |
7 |
bullet.attack_dir -= 360 |
8 |
if (spin_side == -1) |
9 |
bullet.bullet_speed *= -1 |
10 |
} |
11 |
alarm[0] = 8alarm[0]for (var i = 0; i < bullet_number; i++)
{
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet)
bullet.attack_dir = direction + (i + 1) * (360 / bullet_number)
bullet.creator = id
if (bullet.attack_dir > 360)
bullet.attack_dir -= 360
if (spin_side == -1)
bullet.bullet_speed *= -1
}
alarm[0] = 8
image_xscale = 1.5
image_yscale = 1.5
if (spin_side == 1)
direction += 20
else
direction -= 20
spin_side_delay += 1
if (spin_side_delay == 10)
{
var spin_side_old = spin_side
spin_side = choose(-1, 1)
if (spin_side != spin_side_old)
{
with (obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet)
{
obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet.alarm[1] = 2
obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet.image_blend = c_red
}
audio_play_sound(snd_bullet_warning, 1, 0)
}
spin_side_delay = 0
} |
12 |
image_xscale = 1.5 |
13 |
image_yscale = 1.5 |
14 |
if (spin_side == 1) |
15 |
direction += 20 |
16 |
else |
17 |
direction -= 20 |
18 |
spin_side_delay += 1 |
19 |
if (spin_side_delay == 10) |
20 |
{ |
21 |
var spin_side_old = spin_side |
22 |
spin_side = choose(-1, 1) |
23 |
if (spin_side != spin_side_old) |
24 |
{ |
25 |
with (obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet) |
26 |
{ |
27 |
obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet.alarm[1] = 2 |
28 |
obj_battle_enemy_attack_ceroba_flower_spray_vortex_bullet.image_blend = c_red |
29 |
} |
30 |
audio_play_sound(snd_bullet_warning, 1, 0) |
31 |
} |
32 |
spin_side_delay = 0 |
33 |
} |