You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
844 B
35 lines
844 B
if (myhealth <= shell1hp && prevhealth > shell1hp)
|
|
{
|
|
expl = instance_create(x, (y - 8), oFXAnimSpark)
|
|
expl.image_speed = 0.5
|
|
expl.additive = 0
|
|
expl.sprite_index = sExpl1
|
|
expl.depth = -5
|
|
repeat (8)
|
|
instance_create(x, y, oDebris)
|
|
deb = instance_create(x, y, oDebris)
|
|
deb.sprite_index = sShirkArmor1
|
|
deb.depth = -4
|
|
}
|
|
if (myhealth <= shell2hp && prevhealth > shell2hp)
|
|
{
|
|
expl = instance_create((x + 8), y, oFXAnimSpark)
|
|
expl.image_speed = 0.5
|
|
expl.additive = 0
|
|
expl.sprite_index = sExpl1
|
|
expl.depth = -5
|
|
repeat (8)
|
|
instance_create(x, y, oDebris)
|
|
deb = instance_create(x, y, oDebris)
|
|
deb.sprite_index = sShirkArmor2
|
|
deb.depth = -4
|
|
}
|
|
if (myhealth <= 0 && prevhealth > 0)
|
|
{
|
|
alarm[3] = 1
|
|
statetime = 0
|
|
yVel = -2
|
|
xVel *= 0.5
|
|
}
|
|
prevhealth = myhealth
|