Hi,
I am making a simple quiz game for language learners to learn vocab.
It reads a list of English words from one text file, and a list of the corresponding words in another language from another text file. Each set is placed into an array.
The word in the foreign language is displayed
The user is then given a choice of 4 possible answers in English (3 randomly chosen + right answer).
Whenever they click an answer the quiz goes to the next question.
I have it all working, except that when I add in the code to load a new question if the user selected the wrong answer, I seem to get random skipping of my questions, and the score keeping becomes erratic. If I remove that check, then there doesn't seem to be a problem.
It seems to be that my function (DisplayQ) to display the next question seems to run more than once, but not always, and not be the same amount, sometimes it will skip 1 question, other times 2 questions.
But I cant see for the life of me where it is going wrong - any help would be much appreciated
http://www.filedropper.com/quiztry