What am I doing wrong?

Get help using Construct 2

Post » Fri Feb 01, 2013 3:49 am

https://www.dropbox.com/s/urvgfpniswbrz5g/King%20Lear%20Quiz.capx

The problem lies in the MainEventSheet. For some reason, the playercount cycles to three for no discernable reason, and I can't seem to retrieve the correct answers from the xml file.
Can someone help?
B
5
Posts: 5
Reputation: 475

Post » Sat Feb 02, 2013 3:15 am

I noticed that if you press run when the last viewed layout was Main Game, you don't go to the Game Initial Settings page, which sets the NumOfPlayers. So, NumOfPlayers starts at 0. Then when the Next Question button is pressed, your CurrentPlayer != NumOfPlayers event runs (1 != 0), but here you ADD CurrentPlayer + 1 to CurrentPlayer: 1+1+1=3.

Sorry, don't have time to look at your XML issue.
ImageImageImage
B
67
S
19
G
122
Posts: 3,207
Reputation: 73,401


Return to How do I....?

Who is online

Users browsing this forum: randomly and 25 guests