Sorry to bring up an old post but I had exactly the same error and found a fix.
I needed to move the ‘loadScore’ and ‘saveScore’ functions to the ‘local forward references’ section prior to my scene:create function.
HTH
Sorry to bring up an old post but I had exactly the same error and found a fix.
I needed to move the ‘loadScore’ and ‘saveScore’ functions to the ‘local forward references’ section prior to my scene:create function.
HTH