Quiz Game Part - 2 [Score, Life, Timer] | Unity 2D Tutorial | Madfireon

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 125

  • @garypowell3566
    @garypowell3566 4 года назад +3

    Subscribed.......Your teaching method is excellent. I've tried other Quiz tutorials & none of them come anywhere close to yours. Keep up the good work.

  • @MadFireOn
    @MadFireOn  4 года назад +1

    Important Links:-
    Part 1 Tutorial Link:- ruclips.net/video/zmL9Cy7iRHY/видео.html
    Complete Project:- github.com/swapnilrane24/Quiz
    Premium Project:- www.patreon.com/posts/38226864

    • @waynehome4061
      @waynehome4061 4 года назад

      Hi, I'm new to Unity and making games, what I'm trying to do for my first game is a basic 2d dice puzzle game. Up to now I've made a blank dice face in to a sprite button and click it from dice 1 to dice 6 with a sound to go with each click. I have also made a linear timer and a "Done" UI button, what I'm stuck on at the moment is, when a player clicks on the dice numbers and decides the have the right one, they click on the "Done" button and if they are incorrect they start again or they go to the next puzzle if they are correct. I'm stuck on how to make the "Done" button to do that? And also to have the timer to connect to the puzzle as well. Like I said, very new to this.
      Anyway, I understand you may be very busy and any help or tips will be appreciated.
      Thanks

    • @MadFireOn
      @MadFireOn  4 года назад

      email me your issue and a short gameplay clip to madfireongames@gmail.com

    • @alttakikanaltakipedinburay3985
      @alttakikanaltakipedinburay3985 4 года назад

      Hello, first of all, thank you very much for your speech and your education makes a great contribution. Can you send the draft of the unity of this game as a link? I want to improve myself by making changes on my computer because it is bad, I can not do as well with unity program as you.

  • @adeveloper7184
    @adeveloper7184 Год назад

    well! wish you had not stopped making such amazing tutorials.

  • @acidfz1031
    @acidfz1031 4 года назад +2

    Nice., there is always someting to learn from watching your video tutorial over and over. Thanks!

  • @swolyjr
    @swolyjr 4 месяца назад

    Can you use firebase or something to pull questions from an editable data base? Where each questions displayed and choices can be changed or added?

  • @1moretime899
    @1moretime899 11 месяцев назад

    Thank you so much and I've got a question. Can we use button for category choose ?

  • @tzuyuontop3866
    @tzuyuontop3866 3 года назад

    Thank you so much, sir. You really helped me survived my internship.

  • @jeffreydmason2878
    @jeffreydmason2878 3 года назад +1

    Hi, what if i dont want quiz categories? For example, i have a button in my main menu that takes me straight to quiz

  • @zeeshan3714
    @zeeshan3714 9 месяцев назад

    thanks for the tutorial. can i also add images in options button instead of text?

  • @jaymer6757
    @jaymer6757 2 года назад

    @MadFireOn how do I add more categories im having trouble adding more than 3 and linking hte buttons

  • @nurrohman435
    @nurrohman435 2 года назад

    which version of Unity did you use to make this game? thx

  • @syedmudassirulhaq1997
    @syedmudassirulhaq1997 Год назад

    Hello I saw quiz game video very nice. Wanted to ask question how to save score on firebase ?

  • @isdianaher
    @isdianaher 2 года назад

    Nice bro, you saved my school project :D

  • @vetonmavriqi2892
    @vetonmavriqi2892 4 года назад +1

    This is great video and much better than firs part.

  • @acidfz1031
    @acidfz1031 4 года назад +2

    Nice! wish that score and timer was in True or False haha

  • @torveno0496
    @torveno0496 2 года назад

    I want to ask, is there any way to save the score on other scene ???

  • @ElVoxOP
    @ElVoxOP Год назад

    I use your code, from the question data that I created, I created 50 questions, but I want to display only 10 of the questions I created, so I have 5 pattern questions, can you help me?

  • @zudla9959
    @zudla9959 2 года назад

    Hi is there a way to store all the scores? or is there a way to tally all the scores of the category?

  • @patrickgabay9546
    @patrickgabay9546 3 года назад

    Can I compile the questions to an excel file or something? Notice me pls. How can I compile the questions and answer to make it faster?

  • @isyrafsyahmi8775
    @isyrafsyahmi8775 2 года назад

    Hi do u have tutorial for this sequel tutorial for highscore? pls let me know.

  • @DanDDima-od7ue
    @DanDDima-od7ue 4 года назад +2

    Hi, you made a superb game, congrats for this... i have 1 question... How can you do to reduce life 1 life when time`s up and check if life`s 0 to activate gameover panel.. Thank you

    • @MadFireOn
      @MadFireOn  4 года назад

      email at madfireongames@gmail.com

    • @DanDDima-od7ue
      @DanDDima-od7ue 4 года назад +1

      @@MadFireOn i`ve done it ! looking forward for the replay :)

    • @diandragan9378
      @diandragan9378 Год назад

      ​@@DanDDima-od7ue Hi, may I ask how did you solve it? I'm facing the same situation. I would appreciate it a lot for your help.

  • @HonGon-rq8cg
    @HonGon-rq8cg Год назад

    Good afternoon, but tell me how to add life? I understood the variable how, but how to return the picture back and limit the number

  • @roselover4728
    @roselover4728 5 месяцев назад

    how to change random to not random in question list?

  • @shoebkhambati828
    @shoebkhambati828 3 года назад

    Hi great tutorial thanks.... I want to add Different Time for different category how do i do that please help.

  • @namanjhamb5700
    @namanjhamb5700 3 года назад

    Hi, I am getting a NullReferenceException error: Object reference not set to an instance of an object
    QuizManager.SelectQuestion () at the line int val = UnityEngine.Random.Range(0, questions.Count);

  • @joekiedotfun
    @joekiedotfun 4 года назад

    i use audio questions and when i got 2 audio questions after each other .you stil hear the old sound question through the new sound question. how can you stop that ? when clicked anwser sound clip stop or when new sound begin old sound is destroyed

    • @MadFireOn
      @MadFireOn  4 года назад

      Add questionAudio.Stop() in QuizGameUI script PlayAudio() method before if condition.

  • @meninas2023
    @meninas2023 Год назад

    I don’t know how, but my data disappear after finish quiz. I must close and open unity again for data return.

  • @TheFreeBird
    @TheFreeBird 4 года назад +2

    Thanks a lot mate .You have been very helpful

  • @joekiedotfun
    @joekiedotfun 4 года назад

    Great Tutorial . easy to follow but i got a problem. The game crashed when play starting. first half of project everthing was working fine.could you help me?

    • @MadFireOn
      @MadFireOn  4 года назад

      Check the GitHub project. Try to build that and see if you are getting same problem.

  • @MarcoWulur
    @MarcoWulur 3 месяца назад

    👍👍👍👍👍👍

  • @WohraWoshka
    @WohraWoshka 2 года назад

    Thank you so much! Every thing seems to be fine except for the score and time, the time is working, but the score doesn't show anything. I would be appreciated if you help.

  • @Guardabarranc
    @Guardabarranc 3 года назад

    Hello, thank you very much for the tutorial a query Can I use this asset that I provide on github for my own application? I'll wait for your answer, thank you so much

    • @MadFireOn
      @MadFireOn  3 года назад +1

      Yes you can use GitHub projects, they are all under MIT license.

  • @Academia2D
    @Academia2D 2 года назад

    Please turn on translation for this video! I'm from Brazil and would love to follow the best content of this tutorial.

  • @darrylvillanueva5233
    @darrylvillanueva5233 3 года назад

    when my question count is equal to 0 there is an error ArgumentOutOfRangeException. i add this line questions.RemoveAt(val); to ensure that the question is not repeatable.

  • @johnianiiespejo3826
    @johnianiiespejo3826 3 года назад

    I have question on Tostring it said No overload for method 'ToString' takes 1 arguments

  • @feyzacelebi9571
    @feyzacelebi9571 4 года назад

    Thanks for the video! I have a question. I want to create a map game where the questions will be about the countries' location. If it's correct it will move on the the next question, if it's not it will show the correct one. I'm a newbie so i dont know. But i think the game i want to create is similiar to the quiz questions. Can i create a map game following the steps of a quiz quesitons? What do you think?

    • @MadFireOn
      @MadFireOn  4 года назад

      Yes you can create your game following this tutorial. The core mechanics is same, but may be you will need to add additional code to suit with your game.
      I will be happy to help you, you can just email me at madfireongames@gmail.com

  • @mahlatsimoepya9017
    @mahlatsimoepya9017 Год назад

    What a great tutorial. It is my first time trying unity. I downloaded, extracted and imported the game. but I am failing to run/play it. anyone who can help with that?

  • @fandyahmadzakialghiffari7541
    @fandyahmadzakialghiffari7541 4 года назад

    I want to ask, is there any way for me to show the score on the game over panel and add the next button so I can go to the next level? And I also want to know how to make any other menu like the main menu, level selection, and tutorial menu

    • @MadFireOn
      @MadFireOn  4 года назад

      You can do everything you want. Just modify the code as per your need.
      If you are new to Unity then go through Unity basic tutorials. It will help you a lot.

  • @tamaria8803
    @tamaria8803 4 года назад

    Thanks for the tutorial, but I have a problem, when I click one of the main menu buttons, the game displays is showing the game over panel, but after I deactivated the game over panel inspector, everything is going well, is that normal?

    • @MadFireOn
      @MadFireOn  4 года назад

      Make sure the game over panel is deactive before you play the game. [Make GameOver deactive in non-play mode].

    • @tamaria8803
      @tamaria8803 4 года назад

      @@MadFireOn ok, thank you sir

  • @alierbas6868
    @alierbas6868 3 года назад

    Hello.I've got a question. How are we going to continue with the question we're left with?If you know that, can you tell me?If you put the level lock system in this game and pick up where you left off, it will be a really great project.

    • @MadFireOn
      @MadFireOn  3 года назад

      I won't be adding new features to it. But you are free to modify it as per your requirement.

  • @garypowell3566
    @garypowell3566 4 года назад

    Hello... If I press on the correct answer button the "green" correct color appears. How can I get this green color to blink/flash on & off for 2 seconds. Thanks, any help appreciated.

    • @MadFireOn
      @MadFireOn  4 года назад

      Email me at madfireongames@gmail.com

    • @garypowell3566
      @garypowell3566 4 года назад

      @@MadFireOn I have sent you the email, thanks

  • @RanMouri66
    @RanMouri66 4 года назад

    I got problem with datascriptable, how to change animaldata to quizdata as example?

    • @MadFireOn
      @MadFireOn  4 года назад +1

      You can create multiple category of QuizDataScriptable, add them to List QuizDataList in QuizManager inspector, and used anyone of them depending on the button you click in main menu.
      You can used Index 0 - ... for deciding which QuizData [as List element start from 0] you need to used and let the category menu button decide the selected index.
      StartGame method must be called by the Category button to start the game.
      Check the Complete Project Link:- github.com/swapnilrane24/Quiz

  • @muhammedalierbas4496
    @muhammedalierbas4496 3 года назад

    Hi Mate. Thanks for this excellent video. I just want you to know that I want to. How can I show the correct answer again as the correct color when I click the wrong button. I'd appreciate it if you could help me.

    • @MadFireOn
      @MadFireOn  3 года назад

      I got your mail. Just ping me on Saturday or Sunday at madfireongames@gmail.com

    • @muhammedalierbas4496
      @muhammedalierbas4496 3 года назад

      @@MadFireOn Hi, I just have one question. I wonder if it is possible to bring up questions sequentially with the for loop, not with the random range command?

    • @MadFireOn
      @MadFireOn  3 года назад +1

      Yes, you can do it. Create an int index = 0 and increase it by 1 each time you ask question and use that int as index.

  • @alexwalcott1164
    @alexwalcott1164 3 года назад +1

    Can this tutorial make a picture quiz game... Like I want the question to be in form of pictures

    • @MadFireOn
      @MadFireOn  3 года назад +1

      Yes, you can use it to make picture quiz. In questions data add only picture questions

    • @alexwalcott1164
      @alexwalcott1164 3 года назад

      @@MadFireOn okay thanks... What is the format of the pictures used? Jpg or what?

    • @MadFireOn
      @MadFireOn  3 года назад +1

      Format supported by Unity like JPG, PNG

  • @GiDiODev_old
    @GiDiODev_old 3 года назад

    Hello, spectacular work!
    you're a myth.
    I have a problem with creating new "question data".
    it doesn't save me things. that is, if I create a new category I see it in unity but if I open the .asset file with notepad there is no information I have put.
    i have create new category = called "a" with 2 question
    but it does not save the information.
    Any idea?
    i'm waiting new tutorial, you are doing a great and superlative job
    Thanks

    • @MadFireOn
      @MadFireOn  3 года назад

      I don't think you can open .asset file in notepad. It's unity inbuilt file extension.

    • @GiDiODev_old
      @GiDiODev_old 3 года назад

      @@MadFireOn show on explorer, open with notepad
      %YAML 1.1
      %TAG !u! tag:unity3d.com,2011:
      --- !u!114 &11400000
      MonoBehaviour:
      m_ObjectHideFlags: 0
      m_CorrespondingSourceObject: {fileID: 0}
      m_PrefabInstance: {fileID: 0}
      m_PrefabAsset: {fileID: 0}
      m_GameObject: {fileID: 0}
      m_Enabled: 1
      m_EditorHideFlags: 0
      m_Script: {fileID: 11500000, guid: f611d797432e3f846885b2b12fde5f35, type: 3}
      m_Name: AnimalData
      m_EditorClassIdentifier:
      categoryName: Animal
      questions:
      - questionInfo: Which animal eats Deer?
      questionType: 0
      questionImage: {fileID: 0}
      audioClip: {fileID: 0}
      videoClip: {fileID: 0}
      options:
      - Lion
      - Elephant
      - Goat
      - Monkey
      correctAns: Lion
      - questionInfo: Which animal can climb trees?
      questionType: 0
      questionImage: {fileID: 0}
      audioClip: {fileID: 0}
      videoClip: {fileID: 0}
      options:
      - Zebra
      - Bear
      - Hyna
      - Monkey
      correctAns: Monkey
      - questionInfo: Which of the following animal is Herbivorous?
      questionType: 0
      questionImage: {fileID: 0}
      audioClip: {fileID: 0}
      videoClip: {fileID: 0}
      options:
      - Crocodile
      - Moose
      - Bear
      - Panther
      correctAns: Moose
      - questionInfo: Who can walk on 2 legs?
      questionType: 0
      questionImage: {fileID: 0}
      audioClip: {fileID: 0}
      videoClip: {fileID: 0}
      options:
      - Dog
      - Cat
      - Human
      - Turtle
      correctAns: Human
      - questionInfo: Slowest animal on the earth?
      questionType: 0
      questionImage: {fileID: 0}
      audioClip: {fileID: 0}
      videoClip: {fileID: 0}
      options:
      - Cheeta
      - Sloth
      - Leapord
      - Tortois
      correctAns: Sloth

    • @GiDiODev_old
      @GiDiODev_old 3 года назад

      @@MadFireOn and this is the error in console.
      ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
      Parameter name: index
      System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at :0)
      System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0)
      System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at :0)
      QuizGameUI.SetQuestion (Question question) (at Assets/Quiz/Scripts/QuizGameUI.cs:95)
      QuizManager.SelectQuestion () (at Assets/Quiz/Scripts/QuizManager.cs:59)
      QuizManager.StartGame (System.Int32 categoryIndex, System.String category) (at Assets/Quiz/Scripts/QuizManager.cs:45)
      QuizGameUI.CategoryBtn (System.Int32 index, System.String category) (at Assets/Quiz/Scripts/QuizGameUI.cs:187)
      QuizGameUI+c__DisplayClass31_0.b__0 () (at Assets/Quiz/Scripts/QuizGameUI.cs:180)
      UnityEngine.Events.InvokableCall.Invoke () (at :0)
      UnityEngine.Events.UnityEvent.Invoke () (at :0)
      UnityEngine.UI.Button.Press () (at D:/Unity/2019.4.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:68)
      UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at D:/Unity/2019.4.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:110)
      UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at D:/Unity/2019.4.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:50)
      UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at D:/Unity/2019.4.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:261)
      UnityEngine.EventSystems.EventSystem:Update() (at D:/Unity/2019.4.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)

    • @MadFireOn
      @MadFireOn  3 года назад

      Email me at madfireongames@gmail.com

  • @bablugaonkar666
    @bablugaonkar666 4 месяца назад

    how to solve it

  • @smarteducation5935
    @smarteducation5935 3 года назад

    Sorry sir, can you provide subtitles for this video?

  • @itsmedaniell_1677
    @itsmedaniell_1677 4 года назад

    can we change all the question and option using image only not text?

    • @MadFireOn
      @MadFireOn  4 года назад

      You can make all question Image type, but the options will be in text only. You need to write your own logic if you want options in images instead of text.

  • @yourmusic6552
    @yourmusic6552 4 года назад

    Hello, I am getting the following error: Invalid acess body '=>' expecting ; or { Can you please help!

    • @MadFireOn
      @MadFireOn  4 года назад

      You are missing ; or } in that line

    • @yourmusic6552
      @yourmusic6552 4 года назад

      @@MadFireOnthis is the way it is: {get => timerText;}

    • @MadFireOn
      @MadFireOn  4 года назад

      Email me at madfireongames@gmail.com

  • @blagojivanov1877
    @blagojivanov1877 4 года назад

    Bro how can i get the final score in gameover panel?

    • @MadFireOn
      @MadFireOn  4 года назад

      Yes, just create a new Text in gameover panel and give reference to QuizGameUI.
      As we have created getter for ScoreText, create for the new Text.
      And set the new Text to the score, when we show the gameover panel.
      Basically after every quizGameUI.GameOverPanel.SetActive(true); code.

  • @joeboy007able
    @joeboy007able 4 года назад

    please how can i create new players whenever i want to start the game, do you have a tutorial on it?

    • @MadFireOn
      @MadFireOn  4 года назад

      Can you give any example, like what are you trying to achieve?

    • @joeboy007able
      @joeboy007able 4 года назад

      @@MadFireOn am making a computer quiz game with countdown for each questions.how can i add a new player after the first person is done with his round of questions?
      thanks

    • @MadFireOn
      @MadFireOn  4 года назад

      Email me at madfireongames@gmail.com

  • @peiying8969
    @peiying8969 4 года назад

    Can i know why the data, always reset after i run and stop the game? The questions dissapear and size becomes 0

    • @MadFireOn
      @MadFireOn  4 года назад

      If your scriptable object is resetting then you are accessing scriptable object directly, create a variable which store the data of scriptable object and use that variable data in game.

    • @peiying8969
      @peiying8969 4 года назад

      @@MadFireOn Thanks for your reply! Can I know where to create a variable to store the data? Because I can't find where to store it...... Sorry I'm a newbiee and now a bit lost TT

    • @peiying8969
      @peiying8969 4 года назад

      I know there is a list for question... But I don't know where I can to access it... Can you pls give me some advice to guide me? Pls help me! Thank you very much!!

    • @MadFireOn
      @MadFireOn  4 года назад

      email me at madfireongames@gmail.com

    • @munteanustefan9217
      @munteanustefan9217 4 года назад

      @@MadFireOn hello i have a same problem i try to use another list to store the question what are already answerd but don't work ,you have a ideea how to resolve this problem ?

  • @samirdesigner3324
    @samirdesigner3324 4 года назад +1

    very thanks bro

  • @chisme4618
    @chisme4618 4 года назад +1

    Thanks!

    • @MadFireOn
      @MadFireOn  4 года назад

      You are Welcome!

    • @chisme4618
      @chisme4618 4 года назад

      how can I add levels?

    • @MadFireOn
      @MadFireOn  4 года назад

      Levels like multiple questions or different categories of question set?

    • @chisme4618
      @chisme4618 4 года назад

      @@MadFireOn Thanks, I was able to add the levels to it. you're the best! more videos so please games

    • @aeiouxyz53
      @aeiouxyz53 4 года назад

      @@chisme4618 Hi, how did you manage to create level?

  • @aeiouxyz53
    @aeiouxyz53 4 года назад

    Great Video! Can you help me how to use dropdown where when its option is clicked a video will be downloaded from online database and then click play button to play the video. Thanks a lot

    • @MadFireOn
      @MadFireOn  4 года назад +1

      Best option will be to download required Video or audio in loading screen, gameplay should be smooth for good experience.
      Well, right now I am focusing in offline tutorials, will start online game tutorials soon. May be like 2-3 months from now.

    • @aeiouxyz53
      @aeiouxyz53 4 года назад

      @@MadFireOn Ok thanks. How about if I clicked the option, then text will show up. The text data is from .txt file. Do you have tutorial for that? Sorry I'm a beginner just started last month

    • @MadFireOn
      @MadFireOn  4 года назад +1

      You can store questions data in json and load it before gameplay start. I dont have any tutorial on it, but you can google for "Json data in Unity", many tutorials are available.

    • @aeiouxyz53
      @aeiouxyz53 4 года назад

      @@MadFireOn So you QuestionData.asset you create using Json data?

    • @MadFireOn
      @MadFireOn  4 года назад

      Yes instead of using scriptable object, use json data

  • @accelerajafar730
    @accelerajafar730 4 года назад

    can someone help me, How to fix problem No overload for method 'ToString() takes 1 arguments, in class SetTimer?

    • @MadFireOn
      @MadFireOn  4 года назад

      Email me at madfireongames@gmail.com

  • @alttakikanaltakipedinburay3985
    @alttakikanaltakipedinburay3985 4 года назад

    Hello, first of all, thank you very much for your speech and your education makes a great contribution. Can you send the draft of the unity of this game as a link? I want to improve myself by making changes on my computer because it is bad, I can not do as well with unity program as you.

    • @MadFireOn
      @MadFireOn  4 года назад +1

      Check the github link in description. Entire project is available on Github.

    • @alttakikanaltakipedinburay3985
      @alttakikanaltakipedinburay3985 4 года назад

      @@MadFireOn I couldn't find the download link because I don't speak English, could you please tell me the download link on github?

    • @MadFireOn
      @MadFireOn  4 года назад

      Link:- github.com/swapnilrane24/Can-Knockdown

  • @resniatrya4912
    @resniatrya4912 4 года назад

    Thanks for a video. And how to fix problem No overload for method 'ToString' takes '1' argumen

    • @MadFireOn
      @MadFireOn  4 года назад

      EMail me at madfireongames@gmail.com

    • @accelerajafar730
      @accelerajafar730 4 года назад

      @@MadFireOn I experienced the same thing, how to solve it Sir?

  • @hyly_6927
    @hyly_6927 4 года назад

    when my lifesRemaining == 0 , my gameOverPanel doesn't open TvT......

    • @MadFireOn
      @MadFireOn  4 года назад

      try using lifesRemaining