How do I quiz game?

Get help using Construct 2

Post » Sun Apr 30, 2017 3:02 pm

What is the most effective way to create random questions without repeating them? <Google Translate
B
22
S
2
Posts: 44
Reputation: 974

Post » Sun Apr 30, 2017 7:16 pm

@Governador

1) Add all the questions to an array.
2) Use a shuffling technique to randomise the order of the questions.
3) Call the questions in sequence from the array.

Here's a capx that shows a way to shuffle - there are other techniques out there if you search the forums and tutorials:

https://www.dropbox.com/s/h8pmfmjgfkvu8 ... .capx?dl=0
B
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Mon May 01, 2017 11:15 pm

mekonbekon wrote:@Governador

1) Add all the questions to an array.
2) Use a shuffling technique to randomise the order of the questions.
3) Call the questions in sequence from the array.

Here's a capx that shows a way to shuffle - there are other techniques out there if you search the forums and tutorials:

https://www.dropbox.com/s/h8pmfmjgfkvu8 ... .capx?dl=0



That's exactly what I was looking for, I put it in my project and it's working perfectly!
Thank you <3
B
22
S
2
Posts: 44
Reputation: 974

Post » Tue May 02, 2017 8:16 am

@Governador Glad to be able to help :)
B
22
S
9
G
4
Posts: 476
Reputation: 4,327


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests