saintpaul1 Posted May 2, 2023 Share Posted May 2, 2023 (edited) Im walking a path i have created using walkingEvent and i find that it will walk to the next tile in the path and get to that tile, then instead of going to the following tile it will click a tile next to me and then go to the next one. Almost like it didnt go to the correct tile in the first place so it clicks a tile at the side of me then will move onto te next one. Maybe i need to set some sort of 2-3 tile tolerance? Also sometimes it gets to the tile, then clicks again ion the tile even though im already there, then moves on. Edited May 2, 2023 by saintpaul1 Quote Link to comment Share on other sites More sharing options...
Gunman Posted May 2, 2023 Share Posted May 2, 2023 Maybe a logic issue? Hard to say without any code, could try playing with the distance offsets and see if that fixes it for you Quote Link to comment Share on other sites More sharing options...
saintpaul1 Posted May 2, 2023 Author Share Posted May 2, 2023 1 hour ago, Gunman said: Maybe a logic issue? Hard to say without any code, could try playing with the distance offsets and see if that fixes it for you Okay thanks ill have a play with it. This is my event : WalkingEvent event = new WalkingEvent(); event.setPath(areasAndPaths.pathList); event.setHighBreakPriority(true); event.setEnergyThreshold(10); event.setBreakCondition(new Condition() { @Override public boolean evaluate() { return atPath; } }); main.execute(event); Position[] path = { new Position(3051, 3650, 0), new Position(3064, 3652, 0), new Position(3072, 3652, 0) }; LinkedList<Position> pathList = new LinkedList<>(Arrays.asList(path)); Quote Link to comment Share on other sites More sharing options...
saintpaul1 Posted May 5, 2023 Author Share Posted May 5, 2023 On 5/2/2023 at 9:20 PM, Gunman said: Maybe a logic issue? Hard to say without any code, could try playing with the distance offsets and see if that fixes it for you Hey im still having problems if u have any ideas. Tried changing distance thresholds etc to no avail. Before using walkEvent i was using walkpath and i would walk to the following tile before reaching the first one and that fixed my problems, but i need to use walkEvent so i can use a break condition if i get attacked. Quote Link to comment Share on other sites More sharing options...
Gunman Posted May 5, 2023 Share Posted May 5, 2023 1 hour ago, saintpaul1 said: Hey im still having problems if u have any ideas. Tried changing distance thresholds etc to no avail. Before using walkEvent i was using walkpath and i would walk to the following tile before reaching the first one and that fixed my problems, but i need to use walkEvent so i can use a break condition if i get attacked. What is the atPath boolean? Quote Link to comment Share on other sites More sharing options...
saintpaul1 Posted May 5, 2023 Author Share Posted May 5, 2023 (edited) Sorry i just typed that in but basically i return when my player is at an Area. atPath should be : destinationArea.contains(myPlayer()) edit: im going to try create a new path see if it helps, ill report back return destinationArea.contains(myPlayer()) Area destinationArea = new Area(3142, 10245, 3278, 10050); Edited May 5, 2023 by saintpaul1 Quote Link to comment Share on other sites More sharing options...
Gunman Posted May 5, 2023 Share Posted May 5, 2023 If that doesn't work you could try disabling camera rotating 1 Quote Link to comment Share on other sites More sharing options...
saintpaul1 Posted May 5, 2023 Author Share Posted May 5, 2023 13 minutes ago, Gunman said: If that doesn't work you could try disabling camera rotating Creating a new path seems to have solved the problem, But thank you ill keep that in mind for future. Thank you for the help 1 Quote Link to comment Share on other sites More sharing options...