Open GoogleCodeExporter opened 8 years ago
Just uploaded version 1.3 should work with your example... pretty strange there
was a bug that I never saw before.... Thanks!
Original comment by avetis.z...@gmail.com
on 23 Dec 2011 at 10:24
I am using the above example, it works
except for if i change this line
var path:Array = pt.getPath(new Point(1, 1), new Point(8, 8), false);
to
var path:Array = pt.getPath(new Point(0, 0), new Point(9, 9), false);
I want to get the path from one corner to the other, it returns
"TypeError: Error #1010: A term is undefined and has no properties.
at Pathfinder/getPathArray()
at Pathfinder/getPath()"
Which is 'if (i < dimensionX && tmpMap[i + 1][j] == iteration)'
The tmpMap[i + 1][j] is empty, it applies to most if functions in the
getpatharray because with some paths, tiles next to the destination are
non-existant, is there a quick fix for this?
Thank you
Original comment by crisyfal...@gmail.com
on 1 Jan 2015 at 10:31
Original issue reported on code.google.com by
ralf.him...@gmail.com
on 20 Oct 2011 at 3:29