| 1 | if (abs(obj_heart.xprevious - obj_heart.x) > 0.01 || abs(obj_heart.yprevious - obj_heart.y) > 0.01) |
| 2 | { |
| 3 | if (global.invc < 1) |
| 4 | { |
| 5 | dmgamt = round(dmg - ((global.df + global.adef) / 5)); |
| 6 | if (dmgamt < 1) |
| 7 | dmgamt = 1; |
| 8 | global.hp -= dmgamt; |
| 9 | snd_play(snd_hurt1); |
| 10 | global.hshake = 2; |
| 11 | global.shakespeed = 2; |
| 12 | global.vshake = 2; |
| 13 | instance_create(0, 0, obj_shaker); |
| 14 | global.invc = global.inv; |
| 15 | } |
| 16 | } |