2021-06-28 18:44:09 -07:00
|
|
|
if active = 1
|
|
|
|
{
|
|
|
|
repeat (global.bossno)
|
|
|
|
{
|
|
|
|
global.spin = spin
|
|
|
|
global.rounds += 1
|
2021-07-07 23:43:05 -07:00
|
|
|
var iii = instance_create(x,y,obj_boss1bullet)
|
2021-06-28 18:44:09 -07:00
|
|
|
with (iii)
|
|
|
|
{
|
|
|
|
speed = 8.5
|
|
|
|
direction = (360/(global.bossno))*global.rounds + global.spin
|
|
|
|
z = obj_boss1.z
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sound_play(snd_bossshoot)
|
2021-07-07 23:43:05 -07:00
|
|
|
var hit = instance_nearest(x,y,obj_card)
|
2021-06-28 18:44:09 -07:00
|
|
|
if distance_to_object(hit) < 64
|
|
|
|
{
|
|
|
|
life -= 1
|
|
|
|
with (hit)
|
|
|
|
instance_destroy()
|
|
|
|
if life < 1
|
|
|
|
{
|
|
|
|
instance_destroy()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-07 23:43:05 -07:00
|
|
|
|