Loading question in a quiz

Get help using Construct 2

Post » Fri Oct 25, 2013 8:20 pm

I am trying to build a simple quiz with various sets of answers. I was thinking of loading 50 questions with 4 answers each then having 20 unique questions selected at the start of the quiz.


I am thinking of using a random function to fill an array with the 20 questions and possible answers. I think I can do this from the other tutorials on arrays but I am not sure how to get the data to the program. Do I hard code it somewhere, access a SQL DB?

Any thoughts on this would be appreciated.

Thanks
Randy R

B
17
S
7
G
3
Posts: 12
Reputation: 2,798

Post » Fri Oct 25, 2013 9:57 pm

Hi @randy70,

For me, rexrainbow's CSV plugin works *like a charm* - I've been using it for over a year to load the kind of data you've mentioned, and I'm not gonna look anywhere else ;-). [Thank you, @rexrainbow !]

This + ajax gives me a huge flexibility - all configuration in external data files, whether over the web or in nodewebkit.

Take a look at the examples that you can find on rexrainbow's pages - this should give you a headstart.

Good luck,
Greg
B
18
S
3
G
3
Posts: 83
Reputation: 3,736


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk and 56 guests