How do I mix up the position of answers in my trivia game

Get help using Construct 2

Post » Mon Jan 02, 2017 6:37 pm

Message: sebrosen can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
I'm working on a little trivia game based on this tutorial: https://www.youtube.com/watch?v=dPKhEOU2DFY which I think might be based on this tutorial: https://blogs.msdn.microsoft.com/quick_ ... from-file/ or vice versa.

Basically I have a .txt file with the following setup:

Question;
Answer 1;
Answer 2;
Answer 3;
Answer 4;
Correct Answer;

Now in the game we use AJAX to receive the questions and answers from the .txt file. And then we insert them into an array.

In the game I have 5 text elements with a fixed position that I feed the questions and answers to. This means that the answers for each question will always be at the same position for every playthrough of the trivia.

How would you go about mixing up the position of the answers? I'm having a hard time coming up with a solution.

Any help would be much appreciated.
B
7
S
1
Posts: 9
Reputation: 393

Post » Mon Jan 02, 2017 6:49 pm

here you go quiz xml forgot from where i got this.. i know is based probably on the same tutorial but really forgot where i have it from... tutorial section maybe


its using xml instead of .txt but the format is same.. only has some bracket <> etc for options and corect answer.
B
78
S
23
G
69
Posts: 1,353
Reputation: 43,985

Post » Mon Jan 02, 2017 6:59 pm

Thank you so much! Just what I was looking for :-)
B
7
S
1
Posts: 9
Reputation: 393


Return to How do I....?

Who is online

Users browsing this forum: Jackriduk, takamoto and 38 guests