How do I save variables to file

0 favourites
  • 5 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • its possible to save to text file some variables/scores to hdd?

  • I'm not an expert, as I've just started using this software, but I've figured out how to save data using the webstorage object.

    Right click on your layout and select "Insert new object." Under "Data & Storage" select the webstorage object.

    Add a new "System > On start of layout "event to your event sheet.

    On the System event, right click to the left of the word System. Select "Add sub-event."

    Select "Webstorage > Local key exists." Click next then type any name you want to reference the stored object. (Use "test" for example.)

    Click on add action, select Webstorage > Set local value.

    For the key name, use the name you used above ("test")

    Enter the variable value.

    Once this is done, right click "local key "test" exists and select invert.

    Now copy this event and paste the copy under the original. Remove the "invert" on the second event.

    There may be an easier or better way to do this, but this is how I got it to work.

  • jmiguy yu describe a way how save variable to local memory right?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, it saves the data to a local temp directory.

  • with what file extension?

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