Attempting to get a path from jumper...

Hi there,

I’m trying to use Jumper for pathfinding, and it looks pretty straightforward. However, I’m having some major issues trying to figure out how to get a single x,y coordinate from the path:

-- Calculates the path, and its length path = myFinder:getPath(playerx, playery, clickx, clicky) if path then print(('Path found! Length: %.2f'):format(path:getLength())) for node, count in path:nodes() do print(('Step: %d - x: %d - y: %d'):format(count, node:getX(), node:getY())) end end

So this is in one of the examples in Jumper. I’m trying to just get the first item from the path (basically, pop off the front of the array so I have the x,y coordinates for the next space to walk to. I can’t seem to do anything directly with path:nodes() though, I just get errors that it’s a function value

In which line do you get the error? What is the full text of the error?

In which line do you get the error? What is the full text of the error?