1 | if (con == 1 && other.con == 1 && active == 1 && other.active == 1) |
2 | { |
3 | if (locked == 0) |
4 | { |
5 | speed = 0; |
6 | locked = 1; |
7 | with (other) |
8 | { |
9 | speed = 0; |
10 | locked = 1; |
11 | } |
12 | repeat (16) |
13 | { |
14 | if (side == 0) |
15 | { |
16 | if (x >= (other.x - 28)) |
17 | x -= 1; |
18 | if (x >= (other.x - 28)) |
19 | other.x += 1; |
20 | } |
21 | if (side == 3) |
22 | { |
23 | if (y >= (other.y - 28)) |
24 | y -= 1; |
25 | if (y >= (other.y - 28)) |
26 | other.y += 1; |
27 | } |
28 | if (side == 2) |
29 | { |
30 | if (x <= (other.x + 28)) |
31 | x += 1; |
32 | if (x <= (other.x + 28)) |
33 | other.x -= 1; |
34 | } |
35 | if (side == 1) |
36 | { |
37 | if (y <= (other.y + 28)) |
38 | y += 1; |
39 | if (y <= (other.y + 28)) |
40 | other.y -= 1; |
41 | } |
42 | } |
43 | } |
44 | } |