|
1
|
stretchwidth = global.monsterinstance[global.mytarget].sprite_width;
|
|
2
|
stretchfactor = stretchwidth / global.monstermaxhp[global.mytarget];
|
|
3
|
apparenthp = global.monsterhp[global.mytarget];
|
|
4
|
actualhp = global.monsterhp[global.mytarget];
|
|
5
|
maxhp = global.monstermaxhp[global.mytarget];
|
|
6
|
negative = 0;
|
|
7
|
dmg = global.damage;
|
|
8
|
draw_set_color(c_red);
|
|
9
|
alarm[0] = 2; gml_Object_obj_dmgwriter_old_Alarm_0.gml
if (i == 0)
i = 1;
else
i = 0;
if (apparenthp > (actualhp - dmg))
apparenthp -= (round(dmg / 20) + 2);
if (negative == 0)
{
if (apparenthp < 0)
apparenthp = 0;
}
alarm[0] = 2;
|
|
10
|
i = 1;
|
|
11
|
if (dmg != 0)
|
|
12
|
{
|
|
13
|
vspeed = -4;
|
|
14
|
gravity = 0.5;
|
|
15
|
gravity_direction = 270;
|
|
16
|
}
|