|
1
|
if (image_index != 1)
|
|
2
|
{
|
|
3
|
with (mypart1)
|
|
4
|
instance_destroy();
|
|
5
|
with (mypart2)
|
|
6
|
instance_destroy();
|
|
7
|
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
8
|
global.damage = takedamage;
|
|
9
|
with (dmgwriter)
|
|
10
|
dmg = global.damage;
|
|
11
|
image_index = 1;
|
|
12
|
snd_play(snd_damage);
|
|
13
|
alarm[8] = 11; gml_Object_obj_testmonster_Alarm_8.gml
snd_play(hurtsound);
|
|
14
|
}
|
|
15
|
x += shudder;
|
|
16
|
if (shudder < 0)
|
|
17
|
shudder = -(shudder + 2);
|
|
18
|
else
|
|
19
|
shudder = -shudder;
|
|
20
|
if (shudder == 0)
|
|
21
|
{
|
|
22
|
global.hurtanim[myself] = 2;
|
|
23
|
exit;
|
|
24
|
}
|
|
25
|
alarm[3] = 2; gml_Object_obj_testmonster_Alarm_3.gml
if (image_index != 1)
{
with (mypart1)
instance_destroy();
with (mypart2)
instance_destroy();
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
image_index = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
x += shudder;
if (shudder < 0)
shudder = -(shudder + 2);
else
shudder = -shudder;
if (shudder == 0)
{
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|