Making a Quiz game

0 favourites
From the Asset Store
Make your own platformer for both the web and mobile easy with this Santas Platformer Template, FULLY DOCUMENTED
  • Hello

    I am interested in making a quiz game but this is my first time using Construct. I was wondering how hard would it be to make a simple quiz game?

    The structure would be a question and then a choice of 3 answers.

    Some other questions:

    1) Would it be possible to show people how many they got right at the end of the quiz?

    2) Would it be possible to store the answers that players give and stop sending questions they have answered correctly?

    3) How would a large database of questions and answers be stored? Is it at all possible to update a game with new questions or would that require a new game in total?

    Hope you can help me :)

    Note I am using the free version but I may get the Standard version after play around with this a bit, it seems brilliant and fun lol.

    Thank you.

  • 1. Yes

    2. Yes

    3. Array =)

    RTFM =) (read the fabulous manual :))

  • 3) Array seems to be good for the first quiz but not for the updating or reusing the app with other questions and answers. If for you it's programmatically possible load the values(questions/answers) with the AJAX-Plugin or maybe with the load JSON Plugin from a external textfile.

    pro: Think once and make hundreds of quizzes all with different questions and answers.

    con: Requires little coding in php or javascript or

    with luck the load JSON plugin fits to your wishes - then there should be no con. <img src="smileys/smiley1.gif" border="0" align="middle">

    I've already made some apps both ways (JSON/Javascript and JSON/PHP) - so I can tell you it's possible. <img src="smileys/smiley2.gif" border="0" align="middle">

  • QA.capx

  • Yann and the life is easier

  • Thank you very much for that Yann. I will have a play around with it.

  • How to restart the quiz on keyboard button press?

  • Is there a way to make a true or false quiz?

    I mean, giving the question and then showing 2 buttons to classify it lol

    Example: "The sky is blue"

    Button: True and Button: False

    If the person chooses true, 1 point

    I'm trying to adapt the Yann's example but i'm having some trouble in doing it so :<

  • HI

    How can I place the array .. QA in a php file

    It would be nice to simple change QA from the.php or text file

    REGARDS

  • Yann, Is it possible to read the Questions and answers from an external file txt/ini?

  • nothaseo, here's a version I knocked up for someone else, which loads a text file through AJAX..

    Quiz

  • procrastinator, wow that's cool. I never thought it can be done using AJAX. Thanks

  • nothaseo, no problem. Hope it helps :) The only problem with it is, with very few questions, you may see a question repeat (only because it reloads them and happens to choose the same one from the previous round). I did fix it, but can't remember where I put the fixed capx - was something simple anyway. It would be a very slim chance of it being noticable if you had loads of questions. However, if you want me to look it out, I'll search tomorrow.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • procrastinator,It really does :) Yeah I just noticed it. Though it's not really a problem, it'd be great if you can upload the fixed capx :)

    I have some questions. When I export the project as html 5 everything runs well, and I can locate the Questions.txt in the folder. But When I export as desktop apps via node-webkit and play it, all the texts display "0". The questions appear after I clicked the "0" several times. Do you know why? And why is there no Questions.txt in the folder win32, but there is in osx? Thanks

  • nothaseo, hmm don't know tbh. Never exported to anything but html5 for Chrome to preview. Hopefully someone knows why!

    I've had a few drinks so it won't be today I get the fixed version / fix it myself again. Remind me tomorrow the same way :D Sorry man. I hate promising stuff that I fail to deliver :/ Better I let you know than ignore you eh ;p

    As for the file appearing in osX but not Windows.. again, don't know man. I just imported the file into the project through the project panel :/

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)