I am designing a quiz with 20 questions each with four possible answers, each set question-answers is included in a virtual screen. I would like randomly display each virtual screen. I have used Taifun code described in https://puravidaapps.com/snippets.php#2removerandom with a slight variation though instead of displaying a virtual screen this message pops up: The operation Visible cannot accept the arguments: , [com.google.appinventor.components.runtime.VerticalArrangement@915d359]
Note: You will not see another error reported for 5 seconds.
Thank you Ken, I’ve been able to control “emptyArrangement” screen visibility. Now I am trying to randomly send the information contained in any of the virtual screens named “questionA, questionB, questionC, questionD” into “emptyArrangement” screen though after reading through forums and video tutorials I can’t find the appropriate block or logic to use. Can you help me sort this out?
Hi Ken, I have finally managed to randomly display my virtual screens though when I cycle through all of them I can’t get the warning I have coded, also do you have any ideas how to to hide the current virtual screen and return to the initial Screen when clickin on a reset button?
Thank you for your help. I’ve sorted out the warning message not displaying since the problem laid on the way I was understanding its behavior. Also I’ve managed to randomly display my virtual screens. Now I’m in the process of adding a countdown timer for each question, I have included a reset button for each question with the intention of restarting the quiz should the player desires to do so, unfortunately I have not been able to reestablish the counter to its initial value of 10 despite all my efforts I can’t find the solution to this. Do you have any suggestions on how to solve it?
I have included the block combination “set myList to fullList” in each of the reset buttons though I can’t get the desired behavior. I can’t figure out what I am doing wrong. I am getting very weird results and the app just freezes up. How should I place these blocks?
This might be setting myList to point to the original fullList, causing operations on myList to affect fullList. (This is one of the dangers of using linked lists internally.)
To be safe, instead set myList to copy(fullList), to avoid the possibility of side effects on fullList.
I am making a score counter for my App. The idea behind is to increase the score by one when a wrong answer is clicked, I’ve made a list including the three wrong answers though every time I click a button the score gets incremented by three instead of 1, could you please help me sort this out?
The idea behind the App is to have a group of 20 questions of which only 10 will be randomly displayed during each instance of the quiz, each of these questions have 4 options with only 1 right answer, every time a wrong answer is clicked the score counter should increase by 1. Whenever 5 questions are incorrectly answered the game is over and it resets itself to play once more. What I am doing now is experimenting how to implement the counter. The wrongAnswer list will have 60 items in it when the App is finished.