Unexpected string error when declaring a class

edited February 2018 in JavaScript Mode

Hi, i want to declare a class but im getting the error: "Unexpected string". Its not saying which line its on.

Does anyone know why? - https://www.openprocessing.org/sketch/509990

Thanks

Tagged:

Answers

  • edited February 2018 Answer ✓

    Name of the class: Defender_. Its constructor's name: Defender().
    Those 2 names don't match each other! [-X

  • oh of course i cant beleive i missed that, thankyou!

Sign In or Register to comment.