Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in your loop somewhere put.
- path = PathFinding.generatePath(Player.getPosition(),Game.getDestination(),false);
- @Override
- public void onPaint(Graphics g) {
- Graphics2D g2d = (Graphics2D) g;
- if(path != null && path.length > 0){
- for(RSTile tile : path){
- if(tile.isOnScreen()){g2d.draw(Projection.getTileBoundsPoly(tile, 0));}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement