| 1 | dmgamt = ceil(global.hp / 2); |
| 2 | global.hp -= dmgamt; |
| 3 | if (global.hp <= 1) |
| 4 | { |
| 5 | global.hp = 1; |
| 6 | q = 8; |
| 7 | } |
| 8 | snd_play(snd_hurt1); |
| 9 | global.hshake = 2; |
| 10 | global.shakespeed = 2; |
| 11 | global.vshake = 2; |
| 12 | instance_create(0, 0, obj_shaker); |
| 13 | global.invc = 20; |