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

42 lines
897 B
Plaintext
Raw Permalink 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 = 2
if shooting = 1
{
if (instance_exists( obj_player ) ) {
stuff = instance_create(x,y,obj_bullet_boss_1);
with (stuff)
{
direction = point_direction(x,y,obj_player.x,obj_player.y);
speed = 9;
}
sound_play(snd_themshoot);
}
alarm[1] = 5-global.RANK;
}
if global.bossHP > 17000
global.currentmin = 17000
if global.bossHP < 17001 and global.bossHP > 4000
{
untouchable = 1
global.bossHP = 17000
global.life += 1
sound_play(snd_attackcomplete)
alarm[2] = 120
alarm[1] = -1
with (obj_bullet_boss_Base)
instance_destroy();
}
if global.bossHP < 1
{
with (obj_bullet_boss_Base)
{
instance_destroy();
}
alarm[1] = -1
}