Ask coding questions

← Back to all posts
getDistance() method isn't working
GeneralBaker

One of my methods isn't working and I am not sure why. This method can be found in the gatherer script.

Answered by xxpertHacker [earned 5 cycles]
View Answer
Voters
GeneralBaker
Comments
hotnewtop
xxpertHacker

getDistance !== this.getDistance

getDistance is a non-existant variable, this.getDistance is a property of this.

There are plenty of bugs across your code regarding that.

GeneralBaker

Thanks a bunch! That solved approximately a dozen bugs I never would have seen. @xxpertHacker

xxpertHacker

@GeneralBaker Great to hear, well actually not, ig, lol, but good luck fixing everything!

GeneralBaker

XD thanks! @xxpertHacker