30 lines
567 B
Plaintext
30 lines
567 B
Plaintext
|
if active = 1
|
||
|
{
|
||
|
repeat (global.bossno)
|
||
|
{
|
||
|
global.spin = spin
|
||
|
global.rounds += 1
|
||
|
iii = instance_create(x,y,obj_boss1bullet)
|
||
|
with (iii)
|
||
|
{
|
||
|
speed = 8.5
|
||
|
direction = (360/(global.bossno))*global.rounds + global.spin
|
||
|
z = obj_boss1.z
|
||
|
}
|
||
|
}
|
||
|
sound_play(snd_bossshoot)
|
||
|
hit = instance_nearest(x,y,obj_card)
|
||
|
if distance_to_object(hit) < 64
|
||
|
{
|
||
|
life -= 1
|
||
|
with (hit)
|
||
|
instance_destroy()
|
||
|
if life < 1
|
||
|
{
|
||
|
instance_destroy()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|