gmc-jam-3/objects/obj_bossSprite/Alarm_5.gml

55 lines
1.1 KiB
Plaintext
Raw Normal View History

possible = 0
if distance_to_point(512,334) > 2.5
move_towards_point(512,334,2);
untouchable = 0
if global.shottype != 8
global.shottype = 6
if shooting = 1
{
repeat (15)
{
stuff = instance_create(x-300,y-100,obj_bullet_boss_9)
with (stuff)
{
direction = global.roms + global.send
speed = 4
}
global.roms += 18
}
repeat (15)
{
stuff = instance_create(x+300,y-100,obj_bullet_boss_10)
with (stuff)
{
direction = -global.romsb - global.send
speed = 4
}
global.romsb += 18
}
global.send += 3
sound_play(snd_themshoot);
alarm[5] = 40 / global.RANK;
}
if global.bossHP > 6000
global.currentmin = 6000
if global.bossHP < 6001 and global.bossHP > 4000
{
global.bossHP = 6000
untouchable = 1
global.life += 1
sound_play(snd_attackcomplete)
alarm[6] = 120
alarm[5] = -1
with (obj_bullet_boss_Base)
instance_destroy();
}
if global.bossHP < 1
{
with (obj_bullet_boss_Base)
{
instance_destroy();
}
alarm[5] = -1;
}