Go to first question and reset score when clicking "play again" button

I am trying to create a quiz app, I have already done the quiz main page and I got another screen for when you answer all the questions. In the final screen I have a button that says “play again” but when I click it, it takes me to the last question and it continues adding points to the score. What I am trying to do is that when you click the button “play again” it takes you to the first question and it resets the score to 0. Is there any way to do that?

Thanks in advance.

Presumably you have a procedure to set up the screen with the questions on it. Therefore on the main screen you probably have a “play” button which you press to go to the question screen.

When the final question has been answered and the “play again” button is pressed then close the current screen and call that initial procedure.

If this doesn’t work then you will need to show your blocks or share a link to your project (if it is not private).

1 Like