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

43 lines
839 B
Plaintext
Raw Normal View History

possible = 1
untouchable = 0
if global.shottype != 8
global.shottype = 10
if shooting = 1
{
erase += 1
if erase > 500
{
talks = 200
erase = 0
}
if talks > 0
{
sound_play(snd_themshoot);
repeat (global.RANK*2)
{
iii = instance_create(x,y,obj_bullet_boss_12)
with (iii)
{
speed = .05
direction = random(360);
}
}
}
talks -= 1;
alarm[10] = 1;
}
if global.bossHP > 22500
global.currentmin = 22500
if global.bossHP < 22501 and global.bossHP > 4000
{
global.bossHP = 22500
untouchable = 1
global.lives += 1
sound_play(snd_attackcomplete)
alarm[9] = 60
alarm[10] = -1
with (obj_bullet_boss_Base)
instance_destroy();
}