1 decade ago by Rubix
I'm trying to call a function from my astar class, but the following code is giving me an error: "undefined is not a function"
findPath is indeed a function so I don't know what the issue is.
var pathFinder = new ig.game.entities.astar(); this.path = this.pathFinder.findPath(this.goalX / 32, this.goalY / 32, Math.floor(ig.input.mouse.x / 32), Math.floor(ig.input.mouse.y / 32));
findPath is indeed a function so I don't know what the issue is.