phony Posted May 30, 2017 Share Posted May 30, 2017 need a trail anyone have a snippet? 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 30, 2017 Share Posted May 30, 2017 There is one available in the options menu if you want one! Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 30, 2017 Share Posted May 30, 2017 The snippets section does. Quote Link to comment Share on other sites More sharing options...
dmmslaver Posted May 30, 2017 Share Posted May 30, 2017 Do you want to paint the mouse trail as your PC sees it or as jagexs servers see it? ;) 1 Quote Link to comment Share on other sites More sharing options...
Cloxygen Posted May 31, 2017 Share Posted May 31, 2017 private final LinkedList<MousePathPoint> mousePath = new LinkedList<>(); public void onPaint(final Graphics2D g) { while (!mousePath.isEmpty() && mousePath.peek().isUp()) mousePath.remove(); Point clientCursor = getMouse().getPosition(); MousePathPoint mpp = new MousePathPoint(clientCursor.x, clientCursor.y, 300); //1000 = lasting time/MS if (mousePath.isEmpty() || !mousePath.getLast().equals(mpp)) mousePath.add(mpp); MousePathPoint lastPoint = null; for (MousePathPoint a : mousePath) { if (lastPoint != null) { g.setColor(Color.WHITE); g.drawLine(a.x, a.y, lastPoint.x, lastPoint.y); } lastPoint = a; } } 1 Quote Link to comment Share on other sites More sharing options...