How to make a Quiz Game with Multiple Choices in Unity

preview_player
Показать описание

In this video im gonna show you how to create a quiz with multiple choices from scratch and special thanks to @Brackeys because i'll be mainly extending and improving his quiz video tutorial to include multiple choices instead of true and false.

The quiz manager is completely dynamic, you could include as many questions as you want and also there is no limit to the options. So it all depends on how you want your game to be like.

And I will be uploading the part of this quiz game soon. so stay tuned!

Some more unity tutorials which might be useful :

How to throw knife in UNITY :

How to make an AWESOME game Menu :

How to make level saving System :

Remote Configuration by BRACKEYS :

Game difficulty by Brackeys :

How to make first person game in UNITY by BRACKEYS :

Some interesting and fun Unity videos by DANI

I made an evil bot my friend :

I turned Youtube into giant battle royal game :

I made a game in 30 Minutes :

Рекомендации по теме
Комментарии
Автор

Some of you might encounter some error with
public Text QuestionTxt; instead of using this, Use this " public UnityEngine.UI.Text QuestionTxt; "

also with this one:
instead of using those statement, use this instead:


leofrancisamador
Автор

If you're using buttons and Unity can't find your options text, try using <TextMeshProUGUI> in the = line.

cozettedyer
Автор

Why the generateQuestion() is showing this error.Index was out of Range. Must be non-negative and less than the size of colllection.

grodriguez-iwnl-
Автор

Thank you for this really great tutorial! As a few others have said - it is really good for school homework.

simonabunker
Автор

yeyyyy it worked!!!! Take noteee don't use text mesh pro, just use a normal text in ui

sebkie
Автор

Great Man! Really Appreciate your effort and skills, You helped me a lot, Thanks.

faizanhussain
Автор

Thank you so much, I have to make a game for a school history project and your videos are saving me! #brazilhere🇧🇷🇧🇷🇧🇷

deheane
Автор

Hello! When i select all buttons and then drag and drop the answer script to all of them, Unity doesnt show me the same "Answer Script" window like yours. There is no "Is Correct" or "Quiz Manager" fields and i cannot set the reference to QuizManager like you did because there is no option for that. There is only "Script: AnswerScript".... whats wrong?

balkanbrot
Автор

I don't know why but it doesn't work... The Debug.Log always displays "Wrong Answer" even I answer it correctly...

OpheliaNearl
Автор

Hi, thanks for the tutorial, I'm programming a game for some class practices. I've been looking for how to add your tutorial within a category system like science, food, geography... But I can't implement it. I am new to programming. If you could help me I would appreciate it. Thanks for the tutorial again.

luisdiezortizdemendivil
Автор

why does it say to me "Can't add script component 'AnswerScript' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match" when I drag the sricpt in 14:37

SIMDRiVE-kugi
Автор

choices aren't showingggg, helpp

sebkie
Автор

Got an error ArgumentOutOfRangeException. Help!!!

kaloshabuthapa
Автор

What if I wanted to add all the questions via code inside of the script (instead of via the editor), would that be fairly easy to do?
(reasoning: I'm planning on adding a way to import questions/answers via a JSON script later)

austinwinkler
Автор

when i put the AnswerScript in the Buttons it doesnt get that way like in the video

gustavoaraujo
Автор

help! i get only thr "wrong answer" message from debug log

interestingconsiderations
Автор

hellppp i have this error:
NullReferenceException: Object reference not set to an instance of an object
QuizManager.SetAnswers () (at
QuizManager.generateQuestion () (at
QuizManager.Start () (at

sebkie
Автор

Help me pls, I'm gettin this error :
NullReferenceException: Object reference not set to an instance of an object
QuizManager.generateQuestion () (at Assets/QuizManager.cs:43)
QuizManager.Start () (at Assets/QuizManager.cs:16)

xcxcxc
Автор

Discula esto tambien se puede realizar en RA con unity vuforia, en un groud plane o un target?

ericsantiagorodriguez
Автор

All of my Script and Scene options are either not listed or greyed out, so i could not follow this tutorial to completion. For example there was no option to change the reference for quizmanager, just a greyed out bar. Similarly there is no options tab in the "QuizManager" file, just a greyed out script with nothing below.

ayns__