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
Posts: 37
Reputation: 880

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=]Zelda-like Dialogue[
Posts: 552
Reputation: 19,834

Return to How do I....?

Who is online

Users browsing this forum: Canofsuup, Kira8 and 6 guests