Twine Version: 2.3.5
Story Format: Sugarcube
Hello IF community,
Can some please help me identify this error?
Error [tw-user-script-0]:Unexpected token’]’
It pops up in the browser whenever I launch my story/game, which you can find here: https://racompteur.itch.io/mud-and-flame
Obviously, I’m a Twine noob - so I don’t know of any systematic way to go about debugging it.
I’d really appreciate it if someone could give me a steer?
Happy to post any code too, please just let me know which part?
Thank you in advance.
Iris newIris part.
The constructor of your Iris class seems to be referencing variables that aren’t defined.
eg. width & height
drawIris() function has the same issues as point 2, as well as appearing to call undefined functions like
setup() function is defined but not used within the private Scope, and as defined would not be available (no within Scope) of the rest of the application.
Thank you for checking!!!
These mistakes are hangovers from old code I added to the JS, and have since deleted (note to self: use comments as reminders).
That’s now corrected, and all working perfectly
Thank you also for all your replies on forums down the years, they’ve helped me so much!