KingBo Posted June 2, 2021 Share Posted June 2, 2021 Does anyone know why this doesn't work? Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted June 2, 2021 Share Posted June 2, 2021 Position pos1 = new Position(1, 2, 0); Position pos2 = new Position(2, 4, 0); Position pos3 = new Position(1, 1, 0); getWalking().webWalk(pos1, pos2, pos3); https://osbot.org/forum/topic/111003-basic-walking-webwalking-tutorial-a-simple-concept/ Quote Link to comment Share on other sites More sharing options...
dreameo Posted June 2, 2021 Share Posted June 2, 2021 You have the right idea, just the wrong execution. (You can try reading this but if it doesn't make sense, try some simpler java tutorials - https://javagoal.com/static-and-non-static-variable-in-java/) There's a few different options but here's an easy one: static List<Position> path; static { path = new ArrayList<>(); path.add(new Position(x,y,z)); path.add(new Position(x,y,z)); path.add(new Position(x,y,z)); } // your onLoop would remain the same. Quote Link to comment Share on other sites More sharing options...