this tutorial is the "BEST" tutorial I've ever seen here in youtube. I like the way you explain, they're understandable. even a grade 3 student could follow. Great job! hoping to see your other tutorials in the future. Thanks. God bless you and your family! fm the PHILIPPINES.
I have designed three levels in my game. Each level has 12 questions. For each question you answer correctly, you get 1 point. But, in a level, if you answer more than three questions wrong, then you have to restart the level. I want to make it in such a way that only when the user answers all the questions correctly in level 1, he can go to the next level. Thx for your prompt reply... Your tutorials were very helpful for designing the quiz and keeping track of the score.
OK, so you have a variable called Level. Start at zero. You also make a variable for CorrectAnswersThisLevel. Start it at zero, as well. When the game picks a question to display, the number is (Level * 12) + QuestionNumber Every time they get a question right, you add one to CorrectAnswersThisLevel and run a check: Is QuestionNumber == 12 and CorrectAnswersThisLevel> 9? If so, increase Level by one and set QuestionNumber and CorrectAnswersThisLevel back to zero. Otherwise, just set both variables back to zero, so they have to play the level again.
How to open a new screen at the end of the quiz ? i tried to replace " set global number question number to 1 by open another screen" but it gives an error : Select list item: Attempt to get item number 4 of a list of length 3. what i have to do please?
Hi, is it possible to make this quiz dynamic from web or firebase. in case pictures or question are change it change automaticly in the app ? thank you in advance
I`ve just started my project and got a few questions. I use Checkboxes rather than buttons, but the number of possible answers varies between 2 and 8 (more than one can be right). Is there a way to set the Checkboxes, which do not have text for the current question, invisible? Also some of the possible answers in the Checkboxes are too long to be displayed entirely. Can I make it so, that they use 2 rows so that they are still readable?
So if it helps :my problem is that you showed this quiz only for one screen I have these blocks and this design for 4 screen what do I need to change because you explained it (example): initialize global answers to make a list... and I have this 4 times for every single category what do I need to change for that? Example: category chemistry: initialize global answers Chemistry to... Now category games: initialize global answers games to.. Is that so right?
That's not a straightforward question! It raises lots of follow-up questions: What does a player have to do to "unlock" the next level? Get a certain score? Answer all previous questions correctly? Do they need to select a level by pressing a button, or do the next questions simply appear? Can they still go back and repeat the earlier level questions? How would they navigate this? It's going to come down to some sort of variable to store the "currentLevel", and some code to check which level we're on when displaying questions.
Hi! Great video! I need to do a similar a app, but using questions and multiple choice answers from a database. Is it possible to do that with App Inventory?
So I have a quiz with 4 categories and i have in every category 10 questions but my app is without pictures. I wanted to ask : my first screen shows the categories you can choose you click on one and then I think so the quiz starts but when the quiz is finished I need to go back to screen 1 she'll I put something like when question 10 click go to screen one I don't know how to do that and I haven't much time so it would be nice if I could get help in a few minutes thx ;)
Is there a way to make it so that there can be both multichoice and typing in answers on the same page? At the moment, I have only found out how to make the two different methods of answering on different screens. The problem with this is that I am having too many screens which causes a lag in the app, and it makes the scoring system more difficult as I am using a tinyDB but that introduces a lot of other problems. Of you could please reply that would be very helpful
Laura Kang of course! I'm guessing you want it to work so that some questions are multi choice and some are typed in. I would make another list called something like QuestionType. This would contain a simple indication of whether each question is typed or multi choice. Maybe it could be 1 for typed or 2 for multi. I would put both typed of controls on the screen, but only display one set at a time. When a new question is loaded, I would check the QuestionType list to see what type it was. Then I would hide or show the relevant controls. I don't think you'd have to change any of the other code, because it wouldn't be possible for the user to press the wrong button if it was hidden. Does that make sense?
hi , I have followed your tutorial and i still get error codes . for example The operation index in list cannot accept the arguments: , [(berry.jpg book.png calf.jpg peach.png bunny.gif cherry.png cat.jpg key.jpg)], [7] Note: You will not see another error reported for 5 seconds.
It sounds to me like you have got the two inputs the wrong way round in a "Select List Item" block. The item in the top slot should be the list, and the one in the bottom slot should be a number. If that's not the problem, let me know and we'll sort out an email you can send a screen shot to.
hey thanks for tutorial but still am facing one problem. For eg Lets say if Q No 1 answer is on Button 2 and Q No 2 answer is on Button 4 and several other questions have there answers on several different button using this logic didnot work for all the questions, it works for only first question. What is this am i getting it wrong way or still there is some more logic to be added. Please HELP!!!
It should work for all questions. The Answers list contains the number of the button that has the right answer for each question. So for Q1 in my example, it's button 4. For Q2 it's button 1. For Q3 it's button 4 again. Each Choice button checks to see if it's the correct button when it is pressed.Did you try downloading the demo file from the description?
THANKS FOR YOUR HELP BUT STILL NEEDS HELP. AM DESIGNING AN APP OF WHICH THE QUESTION IS IN A PICTURE FORM AND THE ANSWER IS ALSO IN THE IMAGE FORM SO ONE NEEDS TO CHOOSE FROM OPTIONS A,B AND C. IF YOU GET IT WRONG THERE WILL BE ACROSS SIGN AND IF YOU GET IT CORRECT THERE WILL BE A TICK SIGN. THIS IS THE IDEA I HAVE IN MIND KINDLY HELP ME OUT.
You can replace the buttons with pictures, and instead of storing the answers as text, store the name of the image in the list. When you switch to a new question, load the new images into the buttons.
Hello, thanks for your tutorial! I have a question: in your tutorial, you show the condition of Green button or red button (correct / incorrect answer). In your .aia file in download, there aren't those blocks but it works. Can you explain me?
Of course! In the .aia, those blocks are collapsed to save on screen space. If you look at the top left of the code area you'll see them. They look broken. If you right-click and expand them, you'll see the code for the buttons.
It's the same principle. Create a global score variable. Increase it by one every time they get a question right. Of course, if you have set up your quiz to loop your questions or randomly selecting them, you'll end up having a score that keeps on going up and up. Maybe a percentage correct score would be a better measure of success? To do this, have two variable. One that counts the QuestionsCorrect (QC) and one for QuestionsAnswered (QA). The score would be QC/QA*100 Stick that on a label somewhere on the screen and you're done!
(sorry for all the questions i am still trying to learn this for collage) would you put "get global score to get global score + 1" under the block where you change the background colour of the buttons to green. ??
Thank you, I just want to ask about something, after closing the app, does it going to remember the closing point when I reopen it ? Ex: I've answered the question 1 "Cat" then I closed the app in question 2 without answering, next time when I reopen it, am I going to start over from the question 1 or it's going to remember where I closed it. Please I want to know how to make an app remember the closing point
Abderrahim Moudrikah Hi! No, the app does not store any data between sessions. If you want to save things, look into the TinyDB control in the help functions.
I want to make a question and answer quiz. I just want to replace the image with a question. How do I do that? Please help. And Paget you are AMAZING!!!
Instead of the image box, use a label box. Instead of the image name in the list, use the text for the question. Instead of loading the image into the image box, update the text for the label.
I have a question. How can I make it so that the app has to wait, let's say in Question 1, until the user clicks the right answer? Thank you for this tutorial, it really helped!!
in the code for each Answer button, simply move the Next Question block so that it sits inside the "correct" IF block (just after it makes the button green). then it will only be called on a correct answer.
Very helpful video. Can you please make a video on how to do randomize quiz? That means you have a folder of questions(say 100) and then you can specify the number of questions for the quiz(say 10) and the the app will do a quiz by randomly selecting 10 questions from the folder. It will be good to also tract if the question has been asked already.😀. Not sure how easy that is but it will really greatly help.
I can probably give some advice, even if I don't make a video. To make a randomised question order, try this. Make a new list with the same number of elements as you have questions. Call it something like 'questionUsed' Each item in this list is set to 'False' at the start. It's going to keep track of which questions you have used. When you want to choose the next question, do the following: questionNumber = random number between 1 and your number of questions. while questionUsed[questionNumber ] == True: pick a new random number end while set questionused[questionNumber ] to True That way, as you set various questions to True, the While loop will keep running and picking new random numbers until it finds one you haven't used. Assuming that all works, you'll also want to make sure you check when all questions have been used to stop the quiz. I'll let you work on that! Good luck!
sorry for bothering you... But, I have one more question. How do I know which screen is the default screen in my app?. Is screen 1 always the default one? Thanks again!
Yes, that's right. Screen 1 will always be the first to appear, but you could always make it automatically switch to a different one as soon as it loads.
I'm creating a quiz/trivia app and it's a form of questions with multiple button choices. and i've made a multiple screens for each questions. So, how can I make like one screen only for multiple questions that will have a count score for the right and wrong answers?
Rex Verds it could work just like this one, but instead of storing pictures in a list you have text questions in the list. Instead of an image control you have a label. instead of updating the image box, you pop the question into the label. it shouldn't be too hard to change.
Thank you so much , you helped me with a Proyect Bro , and i have learned a lot of things in the progress , really , thank you so much , i will subscribe , pls continue doing more videos.
this tutorial is the "BEST" tutorial I've ever seen here in youtube. I like the way you explain, they're understandable. even a grade 3 student could follow. Great job! hoping to see your other tutorials in the future. Thanks. God bless you and your family! fm the PHILIPPINES.
I was having a really hard time with my programming project, but this was very helpful. Subscribed.
HELLO PLEASE AM TRYING TO ADD THE SCORE TO IT BUT ONLY THE QUESTION IS BEEN SCORED THE REST CANT BE SCORED PLEASE HELP ME OUT.
I have designed three levels in my game. Each level has 12 questions. For each question you answer correctly, you get 1 point. But, in a level, if you answer more than three questions wrong, then you have to restart the level. I want to make it in such a way that only when the user answers all the questions correctly in level 1, he can go to the next level.
Thx for your prompt reply... Your tutorials were very helpful for designing the quiz and keeping track of the score.
OK, so you have a variable called Level. Start at zero.
You also make a variable for CorrectAnswersThisLevel. Start it at zero, as well.
When the game picks a question to display, the number is (Level * 12) + QuestionNumber
Every time they get a question right, you add one to CorrectAnswersThisLevel and run a check: Is QuestionNumber == 12 and CorrectAnswersThisLevel> 9? If so, increase Level by one and set QuestionNumber and CorrectAnswersThisLevel back to zero. Otherwise, just set both variables back to zero, so they have to play the level again.
how can i ( copy) all the block and the designer from screen1 to screen2 ???? ?
i mean how can i duplicate screen1 for example
How to open a new screen at the end of the quiz ? i tried to replace " set global number question number to 1 by open another screen" but it gives an error : Select list item: Attempt to get item number 4 of a list of length 3. what i have to do please?
How do you go from this to next screen? PLEASE HELP
hi i want to ask why my pictures wont come out? i mean for the initialize global pictures, it said that there is error
THANKYOU SO MUCH! I HAVE FINALLY MADE MY OWN APP!! :D
Hi,
is it possible to make this quiz dynamic from web or firebase. in case pictures or question are change it change automaticly in the app ?
thank you in advance
I`ve just started my project and got a few questions. I use Checkboxes rather than buttons, but the number of possible answers varies between 2 and 8 (more than one can be right). Is there a way to set the Checkboxes, which do not have text for the current question, invisible?
Also some of the possible answers in the Checkboxes are too long to be displayed entirely. Can I make it so, that they use 2 rows so that they are still readable?
So if it helps :my problem is that you showed this quiz only for one screen I have these blocks and this design for 4 screen what do I need to change because you explained it (example): initialize global answers to make a list... and I have this 4 times for every single category what do I need to change for that?
Example: category chemistry: initialize global answers
Chemistry to...
Now category games: initialize global answers games to..
Is that so right?
Hi, sorry this comment went into spam so I didn't see it. Did you manage to solve it?
You are a great teacher!!
I am facing problem with scoring system. Will you help me ?
How do you lock & unlock levels in a quiz game with different levels of difficulty in app inventor?
That's not a straightforward question! It raises lots of follow-up questions:
What does a player have to do to "unlock" the next level? Get a certain score? Answer all previous questions correctly?
Do they need to select a level by pressing a button, or do the next questions simply appear?
Can they still go back and repeat the earlier level questions? How would they navigate this?
It's going to come down to some sort of variable to store the "currentLevel", and some code to check which level we're on when displaying questions.
Hi! Great video! I need to do a similar a app, but using questions and multiple choice answers from a database. Is it possible to do that with App Inventory?
So I have a quiz with 4 categories and i have in every category 10 questions but my app is without pictures. I wanted to ask : my first screen shows the categories you can choose you click on one and then I think so the quiz starts but when the quiz is finished I need to go back to screen 1 she'll I put something like when question 10 click go to screen one I don't know how to do that and I haven't much time so it would be nice if I could get help in a few minutes thx ;)
Artin Eskandari I don't think I can explain how to use multiple screens in a UA-cam comment in a few minutes. sorry!
Is there a way to make it so that there can be both multichoice and typing in answers on the same page? At the moment, I have only found out how to make the two different methods of answering on different screens. The problem with this is that I am having too many screens which causes a lag in the app, and it makes the scoring system more difficult as I am using a tinyDB but that introduces a lot of other problems. Of you could please reply that would be very helpful
Laura Kang of course! I'm guessing you want it to work so that some questions are multi choice and some are typed in. I would make another list called something like QuestionType. This would contain a simple indication of whether each question is typed or multi choice. Maybe it could be 1 for typed or 2 for multi.
I would put both typed of controls on the screen, but only display one set at a time.
When a new question is loaded, I would check the QuestionType list to see what type it was. Then I would hide or show the relevant controls. I don't think you'd have to change any of the other code, because it wouldn't be possible for the user to press the wrong button if it was hidden.
Does that make sense?
hi , I have followed your tutorial and i still get error codes . for example The operation index in list cannot accept the arguments: , [(berry.jpg book.png calf.jpg peach.png bunny.gif cherry.png cat.jpg key.jpg)], [7]
Note: You will not see another error reported for 5 seconds.
It sounds to me like you have got the two inputs the wrong way round in a "Select List Item" block. The item in the top slot should be the list, and the one in the bottom slot should be a number.
If that's not the problem, let me know and we'll sort out an email you can send a screen shot to.
hey thanks for tutorial but still am facing one problem.
For eg Lets say if Q No 1 answer is on Button 2 and Q No 2 answer is on Button 4 and several other questions have there answers on several different button using this logic didnot work for all the questions, it works for only first question. What is this am i getting it wrong way or still there is some more logic to be added. Please HELP!!!
It should work for all questions. The Answers list contains the number of the button that has the right answer for each question. So for Q1 in my example, it's button 4. For Q2 it's button 1. For Q3 it's button 4 again. Each Choice button checks to see if it's the correct button when it is pressed.Did you try downloading the demo file from the description?
@@PagetTeaches I have the same problem button 1 is the only button that works
THANKS FOR YOUR HELP BUT STILL NEEDS HELP. AM DESIGNING AN APP OF WHICH THE QUESTION IS IN A PICTURE FORM AND THE ANSWER IS ALSO IN THE IMAGE FORM SO ONE NEEDS TO CHOOSE FROM OPTIONS A,B AND C. IF YOU GET IT WRONG THERE WILL BE ACROSS SIGN AND IF YOU GET IT CORRECT THERE WILL BE A TICK SIGN. THIS IS THE IDEA I HAVE IN MIND KINDLY HELP ME OUT.
You can replace the buttons with pictures, and instead of storing the answers as text, store the name of the image in the list. When you switch to a new question, load the new images into the buttons.
THANKS ....I HAVE BEEN ABLE TO DO IT NOW......AM MUCH EXCITED .......YOU HAVE REALLY HELP ME
PLEASE I WANT TO SCORE BUT ONLY THE FIRST QUESTION IS BEEN SCORED AND THE REST CANT BE SCORED. I HAVE 5 QUESTIONS. KINDLY HELP ME OUT.THANK YOU.
how do I change the screen's name i.e. make screen 2 appear before screen 1?
I'm pretty sure this is not possible! It's one of the limitations of App Inventor.
Thank you for helping me do my project i love you so much
You are welcome 😊
Hello, thanks for your tutorial! I have a question: in your tutorial, you show the condition of Green button or red button (correct / incorrect answer). In your .aia file in download, there aren't those blocks but it works. Can you explain me?
Of course! In the .aia, those blocks are collapsed to save on screen space. If you look at the top left of the code area you'll see them. They look broken. If you right-click and expand them, you'll see the code for the buttons.
Paget Teaches... thank you!!!!!!!
You're very welcome!
hello sir! i have some urgent questions about modifying this code, is it possible to consult you directly? via email is fine too!!!
Thank you , You have done a great job.
thanks! you explain everything very clearly
how do you set up a scoring system for this app ??????????? Please
There's a video for that!
ua-cam.com/video/X2pBSpE1CPY/v-deo.html
Ive been watching that video but i am confused how to set it up for the multiple choice quiz
It's the same principle. Create a global score variable. Increase it by one every time they get a question right.
Of course, if you have set up your quiz to loop your questions or randomly selecting them, you'll end up having a score that keeps on going up and up. Maybe a percentage correct score would be a better measure of success?
To do this, have two variable. One that counts the QuestionsCorrect (QC) and one for QuestionsAnswered (QA). The score would be QC/QA*100
Stick that on a label somewhere on the screen and you're done!
(sorry for all the questions i am still trying to learn this for collage)
would you put "get global score to get global score + 1" under the block where you change the background colour of the buttons to green. ??
Yes, that's right. That's the bit of code that deals with a correct answer.
Hey, great video! I was just wondering whether it is possible to display the questions by taking them from a database rather than hard coding it?
TheAcidburn007 Sure. What sort of database are you thinking of? Where's it hosted?
+Steve Paget Through a Web source?
Thank you, I just want to ask about something, after closing the app, does it going to remember the closing point when I reopen it ?
Ex: I've answered the question 1 "Cat" then I closed the app in question 2 without answering, next time when I reopen it, am I going to start over from the question 1 or it's going to remember where I closed it.
Please I want to know how to make an app remember the closing point
Abderrahim Moudrikah Hi! No, the app does not store any data between sessions. If you want to save things, look into the TinyDB control in the help functions.
Thank you !
I want to make a question and answer quiz. I just want to replace the image with a question. How do I do that? Please help. And Paget you are AMAZING!!!
Instead of the image box, use a label box. Instead of the image name in the list, use the text for the question. Instead of loading the image into the image box, update the text for the label.
very quality turtorial. thanks so much!
I have a question.
How can I make it so that the app has to wait, let's say in Question 1, until the user clicks the right answer?
Thank you for this tutorial, it really helped!!
in the code for each Answer button, simply move the Next Question block so that it sits inside the "correct" IF block (just after it makes the button green). then it will only be called on a correct answer.
Sorry, you probably have a block that activates the timer instead of a Next Question block.
Paget Teaches... Thank you very much!!! I'll try it as soon as possible! Again, thank you!
Very helpful video. Can you please make a video on how to do randomize quiz? That means you have a folder of questions(say 100) and then you can specify the number of questions for the quiz(say 10) and the the app will do a quiz by randomly selecting 10 questions from the folder. It will be good to also tract if the question has been asked already.😀. Not sure how easy that is but it will really greatly help.
The quiz I mentioned above is a multiple choice quiz. Thank you very much!
I can probably give some advice, even if I don't make a video.
To make a randomised question order, try this.
Make a new list with the same number of elements as you have questions. Call it something like 'questionUsed'
Each item in this list is set to 'False' at the start. It's going to keep track of which questions you have used.
When you want to choose the next question, do the following:
questionNumber = random number between 1 and your number of questions.
while questionUsed[questionNumber ] == True:
pick a new random number
end while
set questionused[questionNumber ] to True
That way, as you set various questions to True, the While loop will keep running and picking new random numbers until it finds one you haven't used.
Assuming that all works, you'll also want to make sure you check when all questions have been used to stop the quiz. I'll let you work on that!
Good luck!
How do you "pick a random number?"
sorry for bothering you... But, I have one more question. How do I know which screen is the default screen in my app?. Is screen 1 always the default one?
Thanks again!
Yes, that's right. Screen 1 will always be the first to appear, but you could always make it automatically switch to a different one as soon as it loads.
hello.. just a clarification... did you use multiple screen here? thanks for the reply.
Rex Verds No, I just re-use the same controls for each question.
so how will you create if the quiz are a form of "QUESTIONs"?
Rex Verds I'm not sure what you're asking here, sorry. Can you describe how you want your quiz to work?
I'm creating a quiz/trivia app and it's a form of questions with multiple button choices. and i've made a multiple screens for each questions. So, how can I make like one screen only for multiple questions that will have a count score for the right and wrong answers?
Rex Verds it could work just like this one, but instead of storing pictures in a list you have text questions in the list. Instead of an image control you have a label. instead of updating the image box, you pop the question into the label. it shouldn't be too hard to change.
Thank you so much , you helped me with a Proyect Bro , and i have learned a lot of things in the progress , really , thank you so much , i will subscribe , pls continue doing more videos.
Thank you. Excellent Tutorial
thank you so much this is very helpful, but the dropbox link is dead btw
Thanks for letting me know. Fixed it!
sorry but i still can't access it
Miracle Anyanegbu it works for me, I just downloaded it
ok thanks Ella. got it sorted now
nice tuto , i like it , thank you for idea
Thank you. It is help awesomely :)
Hey Paget i need help
Artin Eskandari What's up?
thank you so much....love from Indonesia
Thanx a lot Paget.
great tutorial!
Thank you very much!!
Thank you so much
thanks
dude your the best!! helped me so much
Thank you!
thanx you are a big man and i like you soooo much thanx you help me to make my dream in true >>>> my english not good i know hhhhhhhhh
FANTASTIC!
Great tutorial. Works perfectly and it just what I was looking for.
Thank a lot! You got a Like and Subscribe from me :)
you was kinda boring to me, but your video is good thanks
LOL!
N one using your video to make a video it just has a cringy intro