I have temporarily disabled the part of my game file that seems to be causing the problem.
This is a difficult error for me to solve, because I am not getting any error message when I test my game. Instead, it makes the call to move on to the next screen (main), but the page does not change, and it seems to almost 'freeze up'.
Note: this does not happen when the while loop is disabled, which is why I have pointed to it as the error origin.
(Note: At the beginning of the game numScenarios is set to the width of the QA array to keep track of how many questions there are.)
What I expect to happen:
The while loop begins, it prints the first scenario, the user has a chance to touch/click which door has the correlating, correct answer - they move along a path to the door they touched, once they arrive to the touch coordinates: if they are right (if the door.doorOption/doorText.specificDoorText = scenario.scenarioAnswer), I take the scenario they got right out of the QA array and subtract one from numScenarios//if they are wrong, points get added to delay time, the scenario stays in the QA array, and numScenarios stays the same. This process happens until numScenarios = 0. Then the game is over and it takes you to the summary page.
However, I am not sure what part of my while loop is causing the page to get hung up.. and hoping that another pair of eyes can catch it, or suggest another way to go about doing things.
Thank you all very much.