step_towards() pixel movement in Bug Reports
|
|
Resolved
|
step_towards() could return incorrect results when two pixel-moving objects were on the same tile.
|
| BYOND Version: | 493 |
| Operating System: | Windows 7 Home Premium 64-bit |
| Web Browser: | Firefox 9.0.1 |
| Applies to: | Dream Daemon |
|
| Status: |
Resolved (494)
This issue has been resolved.
|
|
|
Using step_towards() in pixel movement seems to miscalculate the direction at close proximity in certain situations, possibly based on the target's location (when both objects are in the same tile?), instead of their actual position. This can lead to some flunky looking results, like an object walking up and down repeatedly next to a target, instead of taking that final step into them.
Using step(src,get_dir(src,target)) seems to provide a simple workaround for the time being
|