Yanns QA+AJAX...?

  • Hi,

    I'm a certifiable Construct2 noob, and I'm playing around with Yanns QA.cpx. I'm interested in dynamically loading the questions from a .TXT file using AJAX. I've managed to get the file to load, and somewhat fill the array, however, the first question is just "1"s and "0"s and when the questions do start the game has skipped the first two.

    I've seen similar posts to this but couldn't find a solution. I've attached my modified .cpx as an example.

    Any help would be greatly appreciated!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made some similar to this, but i have my file with question in XMLformat. I think is easiest if you have something XML like:

    <questions>
    <question text="What does C2 mean ?">
    <answer right="false"> Cool2</answer>
    <answer right="false"> Conan2</answer>
    <answer right="true"> Construct2</answer>
    <answer right="false">Create2 </answer>
    </question>
    </questions>[/code:2yhv36j3]
    
    Check this.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)