Yanns QA+AJAX...?

Get help using Construct 2

Post » Thu May 22, 2014 11:08 am

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!!! :)
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 1
Reputation: 152

Post » Thu May 22, 2014 11:20 am

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:



Code: Select all
<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>


Check this.
You do not have the required permissions to view the files attached to this post.
B
11
S
3
Posts: 39
Reputation: 814


Return to How do I....?

Who is online

Users browsing this forum: AllanR, BackendFreak, farsen, R0J0hound and 34 guests