- Home /
Quiz Game Random Question Stuck
I'm new at coding and unity and i watch video from brackeys youtube channel how to make a quiz game he ended up the last video and if you look into the game there is no main menu i start making a menu and i do it finally but now i have 9 random questions and there is a false or true when i end the 9 questions the repeat that there is no end i want to go to the next sense after 9 questions (sorry for the bad english)
Hello, did you find a solution for this I kind of have the same problem..
Answer by Stevificus · Jan 23, 2020 at 01:28 PM
I am taking this to mean you wish to load a scene once the 9 questions are up? Why don't you add to a variable each time a question is answered and when the variables equals the desired value has the new scene launched. Something like:
int questionsAsked = 0;
if (questionsAsked == 9)
{
SceneManager.LoadScene("NextScene");
}
I'm not familiar with the Brackeys stuff, but I assume it'd be pretty simple to add +1 to the variable eachtime a question is answered.
QuestionsAsked = QuestionsAsked +1
It might not be the best solution as I'm new as well, but it might push you in the right direction. Forgive me if I've misunderstood your issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220612175844im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how perevent ball from stuck in corner ? 0 Answers
Creating a Multiple Choice Game 2 Answers
How to make questions random, and make it loadable outside unity editor 1 Answer
Are there any in depth beginner tutorials? 6 Answers
Orbit around object script. 0 Answers