darkjack7 4 Share Posted May 28, 2016 im trying to figure out how to open Gates in pathfinding, can somebody help Link to comment Share on other sites More sharing options...
LogicSoup 92 Share Posted May 28, 2016 using I believe getWalking().getAStarPathFinder().addObstacle(new PassableObstacle()); Link to comment Share on other sites More sharing options...
darkjack7 4 Author Share Posted May 28, 2016 using I believe getWalking().getAStarPathFinder().addObstacle(new PassableObstacle()); could u give us an example pls? :x Link to comment Share on other sites More sharing options...
Dreamlicker 750 Share Posted May 28, 2016 getWalking().getAStarPathFinder().addObstacle(new PathObstacle("I am an object", "I am its' action", null, null, null)); Link to comment Share on other sites More sharing options...
darkjack7 4 Author Share Posted May 29, 2016 i tried to add getWalking().getAStarPathFinder().addObstacle(new PathObstacle("I am an object", "I am its' action", null, null, null)); to the onStart but it gave me an error that "Cannot instantiate the type PathObstacle" i tried getWalking().getAStarPathFinder().addObstacle(new PassableObstacle("I am an object", "I am its' action", null, null, null)); but it doesn't seem to work as the char keeps trying to spam click the other side, any ideas? :x Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.