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

43 lines
875 B
Plaintext
Raw Permalink Normal View History

possible = 1
untouchable = 0
if global.shottype != 8
global.shottype = 7
if shooting = 1
{
repeat (global.RANK + 1)
{
stuff = instance_create(x,y,obj_bullet_boss_11);
with (stuff)
{
direction = global.ero + global.modos
speed = 6
}
global.ero += 360/(global.RANK+1)
}
sound_play(snd_themshoot);
global.modos += 10
alarm[6] = 45;
}
if global.bossHP > 4500
global.currentmin = 4500
if global.bossHP < 4500 and global.bossHP > 4000
{
global.bossHP = 4500
untouchable = 1
global.life += 1
sound_play(snd_attackcomplete)
alarm[7] = 120
alarm[6] = -1
with (obj_bullet_boss_Base)
instance_destroy();
}
if global.bossHP < 1
{
with (obj_bullet_boss_Base)
{
instance_destroy();
}
alarm[6] = -1
}