How do I save variables to a local file?

0 favourites
  • 2 posts
From the Asset Store
Ludo Local Multiplayer board game can be played by 2 to 4 players
  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)