- Joined
- Nov 23, 2018
- Messages
- 15
- Thread Author
- #1
What's the best practice for creating smart pathing? Or i guess just my own paths in general.
My bots work fine, however its very noticeable that it has trouble navigating around city walls, for instance my bot is currently walking to the air altar but it doesn't follow a decent path without back tracking a few times.
My bots work fine, however its very noticeable that it has trouble navigating around city walls, for instance my bot is currently walking to the air altar but it doesn't follow a decent path without back tracking a few times.
Code:
final BresenhamPath bp = BresenhamPath.buildTo(Constants.current_altar.getEntrance());
if (bp != null) {
if (bp.step(true)) {
Execution.delayWhile(bot.player::isMoving, 1000, 2500);
}
}
Last edited: