1 | image_speed = 0; |
2 | xxx = 0; |
3 | if (x <= obj_target.x) |
4 | hspeed = global.attackspeed + random(global.attackspeedr); |
5 | if (x > (obj_target.x + obj_target.sprite_width)) |
6 | hspeed = -(global.attackspeed + random(global.attackspeedr)); |
7 | if (global.weapon == 14) |
8 | { |
9 | hspeed *= 1.2; |
10 | punchtime = 0; |
11 | punches = 0; |
12 | maxpunchtime = 30; |
13 | maxpunches = 4; |
14 | } |
15 | if (global.weapon == 47) |
16 | { |
17 | hspeed *= 1.4; |
18 | punchtime = 0; |
19 | punches = 0; |
20 | maxpunchtime = 30; |
21 | maxpunches = 5; |
22 | } |