How do I setup a text file to be read/loaded and written to?

Get help using Construct 2

Post » Fri Jun 27, 2014 2:41 am

Basically I need a way to create a simple text file for a quiz game project, that would hold player names as well as scores, and would both read info from it as well as write to it. Basically the idea is to edit the text file with player names prior to loading the game, and then once the game loads it reads the text file and arranges the "players" in order to be selected. Then, as that player answers questions under their name, they earn points, which are written back to the text file with their info (or another file).

Also, I need to figure out an easy way to load multiple choice questions divided by category and difficulty so I can generate a random question each time someone goes to answer one (and if possible setup a way to not generate the same question twice)
MOO
B
14
S
4
G
4
Posts: 53
Reputation: 3,862

Post » Fri Jun 27, 2014 3:18 am

you can use the XML object..

if you have any tables you want loaded into your game I would highly recommend @RexRainbow 's CSV plugin (reads comma delimited files and can modify them).. it works great.
B
97
S
32
G
15
Posts: 1,183
Reputation: 16,148

Post » Fri Jun 27, 2014 3:21 am

you could probably modify what they are doing in this tutorial to suit your needs..

https://www.scirra.com/tutorials/321/ho ... game-slots
B
97
S
32
G
15
Posts: 1,183
Reputation: 16,148


Return to How do I....?

Who is online

Users browsing this forum: charliesan763, JaredX and 10 guests