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

36 lines
815 B
Plaintext
Raw Normal View History

possible = 1
untouchable = 0
if global.shottype != 8
global.shottype = 1
if shooting = 1
{
xtemp = irandom(1024)
ytemp = irandom(300)
repeat (15*global.RANK)
{
stuff = instance_create(xtemp,ytemp,obj_bullet_boss_1);
with (stuff)
{
direction = global.rotator;
speed = 1 + (global.RANK);
}
global.rotator -= 360 / (15 * global.RANK);
}
sound_play(snd_themshoot);
alarm[0] = 120 /global.RANK;
}
if global.bossHP > 17500
global.currentmin = 17500
if global.bossHP < 17501 and global.bossHP > 4000
{
global.bossHP = 17500
untouchable = 1
global.lives += 1
sound_play(snd_attackcomplete)
alarm[1] = 60
alarm[0] = -1
with (obj_bullet_boss_Base)
instance_destroy();
}