It is fine when I reference them but when I want to change them I am given an error that seems to think the variable I created outside all the functions is local to the function it is referenced in.
This is the error:
processing.app.SketchException: UnboundLocalError: local variable 'score' referenced before assignment
It is fine when I reference them but when I want to change them I am given an error that seems to think the variable I created outside all the functions is local to the function it is referenced in.
This is the error: processing.app.SketchException: UnboundLocalError: local variable 'score' referenced before assignment