I want to set 50:50 lifeline in my quiz app.
(Answer = A)
(OPTIONS)
- B
- A
- C
- D
When a button clicks option A and a random option from other 3 option want to be shown. Others will hide. How make it possible?
I want to set 50:50 lifeline in my quiz app.
(Answer = A)
(OPTIONS)
When a button clicks option A and a random option from other 3 option want to be shown. Others will hide. How make it possible?
Shure, Read this - by Taifun
https://puravidaapps.com/quiz.php
And see this topic, have aia to test
May be help you
Sorry its not help me. I am searching about lifeline system in my quiz app as said…
Are you saying about random item from list? Because i want select random string not a integer…
You can set the options in list and then use select random item from list.
Is need to check 4 options is it answer and remove it from list and pick random option from other 3 items in list?
You can created a question with right answer and set other 3 answer random from list answer
Sorry didn’t got you
OK… i’m go with other idea.
Created 2 files. File 1 contains all Question and Answer. File 2 contains Right Answer.
After pick over the answer check file 2 is the answer is right or not
Yes. I have did it and its working successfully. Here its blocks
Is can reduce its blocks? If can, suggest these ideas…
Edit
I have changed if else blocks to else if as recommended
Yes, you can !!
My idea is created 2 file (txt) When got text first time set question label 1 and aswers rest of the labels. Set all label Aswers clickleable to enable. When lable click read file with aswers and if aswers is true do to you need to do else you know !
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.