1 |
if (image_index != 1 && image_index != 2) |
2 |
{ |
3 |
with (mypart1) |
4 |
instance_destroy(); |
5 |
dmgwriter = instance_create(x, y + 80, obj_dmgwriter); |
6 |
dmgwriter.negative = 1; |
7 |
global.damage = takedamage; |
8 |
with (dmgwriter) |
9 |
dmg = global.damage; |
10 |
if ((global.monsterhp[myself] - takedamage) < 1 && died == 0) |
11 |
tempdie = 1; |
12 |
if (tempdie == 1) |
13 |
{ |
14 |
shudder = 16; |
15 |
caster_free(global.batmusic); |
16 |
} |
17 |
image_index = 1; |
18 |
if (died == 1) |
19 |
image_index = 2; |
20 |
snd_play(snd_damage); |
21 |
alarm[8] |
22 |
} |
23 |
if (sha == 0) |
24 |
sha = x; |
25 |
x = sha + shudder; |
26 |
if (shudder < 0) |
27 |
shudder = -(shudder + 1); |
28 |
else |
29 |
shudder = -shudder; |
30 |
if (shudder == 0) |
31 |
{ |
32 |
sha = 0; |
33 |
global.hurtanim[myself] = 2; |
34 |
exit; |
35 |
} |
36 |
alarm[3] = 2;gml_Object_obj_undyneboss_Alarm_3.gmlif (image_index != 1 && image_index != 2)
{
with (mypart1)
instance_destroy();
dmgwriter = instance_create(x, y + 80, obj_dmgwriter);
dmgwriter.negative = 1;
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
if ((global.monsterhp[myself] - takedamage) < 1 && died == 0)
tempdie = 1;
if (tempdie == 1)
{
shudder = 16;
caster_free(global.batmusic);
}
image_index = 1;
if (died == 1)
image_index = 2;
snd_play(snd_damage);
alarm[8]
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
if (tempdie == 1)
alarm[3] = 4; |
37 |
if (tempdie == 1) |
38 |
alarm[3] = 4;gml_Object_obj_undyneboss_Alarm_3.gmlif (image_index != 1 && image_index != 2)
{
with (mypart1)
instance_destroy();
dmgwriter = instance_create(x, y + 80, obj_dmgwriter);
dmgwriter.negative = 1;
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
if ((global.monsterhp[myself] - takedamage) < 1 && died == 0)
tempdie = 1;
if (tempdie == 1)
{
shudder = 16;
caster_free(global.batmusic);
}
image_index = 1;
if (died == 1)
image_index = 2;
snd_play(snd_damage);
alarm[8]
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
if (tempdie == 1)
alarm[3] = 4; |