Problem with updating score in pygame – including a for loop
Could anyone help me fix my score system?
I am coding a game where the user is shown a clock face and needs to choose the correct time from three options (answer1, answer2 and answer3). Once they have chosen their answer, if they are correct, the variable user_score should increment by one, and if they are incorrect the variable wolf_score should increment by one.
The variables are defined outside of the while loop initially as zero, there is a for loop in which the event for mouse button down is checked and the variables increase, and the text displayed on screen is defined after the loop.
The score should update once the user choses their answer, but it does not change when the code is run, it stays at 0.
This is my first post, so sorry if I have not given enough details, of if the code is hard to follow!