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: 43
Reputation: 972

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
20
S
8
G
3
Posts: 458
Reputation: 4,055

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: 43
Reputation: 972

Post » Tue May 02, 2017 8:16 am

@Governador Glad to be able to help :)
B
20
S
8
G
3
Posts: 458
Reputation: 4,055


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 44 guests