I get an error for one of the last lines: this.attack(enemy); saying it is not a function.
Any ideas about what is wrong? Anything else in the code that may be tripping my hero up?
Thanks!
I get an error for one of the last lines: this.attack(enemy); saying it is not a function.
Any ideas about what is wrong? Anything else in the code that may be tripping my hero up?
Thanks!
Well, it is quite possible that you have equipped a primary tool that does not have an attack function, such as a hammer. Double-check your equipment at the level screen.
I can’t believe I switched the sword out for a hammer. Thanks for the assist @ChronistGilver !