How do I store thousands of questions / answers?

Get help using Construct 2

Post » Wed Mar 01, 2017 1:29 am

I'm making a quiz type game, where every round one of thousands of random questions appears and you'll have to type in the answer (a number). Then the programm compares your number with the answer, and gives your percentage of accuracy.

I was gonna use the array function, but setting all the values by making thousands of different actions is going to be chaotic and maybe cause some lag (?). Is there an easier way? I'd imagine typing the questions and answers in a text file and importing it into construct 2... or smthing like that but I have no Idea how to do it.

P.S. this is gonna be for a mobile game.

Sorry for my bad english
B
10
S
4
Posts: 34
Reputation: 874

Post » Wed Mar 01, 2017 2:05 am

Arrays are the way to go but you can also pre-enter the answers, export as json and then import as json for when the game loads.
Dictionaries can do the same but are more user friendly
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, gskunk, Yahoo [Bot], zenox98 and 58 guests