How do I save variables to a local file?

Get help using Construct 2

Post » Thu Feb 18, 2016 10:14 pm

Hey everyone,

I'm very very new to this and I'm making a very simple game to collect some results from people. I've thoroughly enjoyed designing it on this platform and it's been fun learning it! At the end of a round, a player presses 'submit' and that is when I want to store the information.

The experiment gives me 4 pieces of information I wanna store are 4 integer values (0-2,0-31,0-31, 0-31) and an array of size 5 that can take integer values between 0-2. Ideally, it would be great to store it in a text file as follows:
1
15
12
19
0 1 0 2 1 0

for each round played. However, other data formats can be fine really as I can handle them another time.

How could I locally add the information to a file (not create one but just add to what's already there)?

I hope this isn't too badly posed since I've been rushing to learn Construct within a night, haha!

Thank you!
B
2
Posts: 1
Reputation: 152

Post » Fri Feb 19, 2016 1:12 am

You don't. That would be a violation of security in JavaScript. How would you like it if any website that you visited could save files on your computer?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests