A student is trying to make it so the “Hero” sprite shows its “protagonist block” animation once it stops moving right with the right arrow key and show its “protagonist block 2” when it stops moving left. Right now the he continues to “walk” in place.
Look at lines 62 & 66. The student is “redeclaring” the variable “facingleft” in both of those lines and it has already been declared at the beginning of the program. If they remove the “var” declaration and just leave it as “facingleft” they may be closer to a solution.
Lines 62 & 66 the student redeclared a variable - they wrote var facingLeft = false; instead of facingLeft = false;
same on 93 - but they also misspelled bossHP as BossHP - case matters!