1 |
if (myinteract == 0) |
2 |
{ |
3 |
if (direction >= 225 && direction < 315) |
4 |
{ |
5 |
facing = 0; |
6 |
sprite_index = dsprite; |
7 |
} |
8 |
if (direction >= 315 || direction < 45) |
9 |
{ |
10 |
facing = 1; |
11 |
sprite_index = rsprite; |
12 |
} |
13 |
if (direction >= 45 && direction < 135) |
14 |
{ |
15 |
facing = 2; |
16 |
sprite_index = usprite; |
17 |
} |
18 |
if (direction >= 135 && direction < 225) |
19 |
{ |
20 |
facing = 3; |
21 |
sprite_index = lsprite; |
22 |
} |
23 |
} |
24 |
if (myinteract == (1 + argument0)) |
25 |
{ |
26 |
if (facing == 0) |
27 |
sprite_index = dtsprite; |
28 |
if (facing == 1) |
29 |
sprite_index = rtsprite; |
30 |
if (facing == 2) |
31 |
sprite_index = utsprite; |
32 |
if (facing == 3) |
33 |
sprite_index = ltsprite; |
34 |
} |