1 | bb = 1; |
2 | if (blue == 1) |
3 | { |
4 | if (obj_heart.xprevious != obj_heart.x || obj_heart.yprevious != obj_heart.y) |
5 | { |
6 | bb = 1; |
7 | } |
8 | else |
9 | { |
10 | bb = 0; |
11 | blut = 2; |
12 | } |
13 | } |
14 | if (global.invc < 1 && bb == 1) |
15 | { |
16 | dmgamt = round(dmg - ((global.df + global.adef) / 5)); |
17 | if (dmgamt < 1) |
18 | dmgamt = 1; |
19 | global.hp -= dmgamt; |
20 | snd_play(snd_hurt1); |
21 | global.hshake = 2; |
22 | global.shakespeed = 2; |
23 | global.vshake = 2; |
24 | instance_create(0, 0, obj_shaker); |
25 | global.invc = global.inv; |
26 | } |