How do I ARRAY LOAD / DOWNLOAD

0 favourites
  • 2 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • HI,

    This is my easy code to save, clear, and load again the array,

    but dont work, what is the problem??

    Tks

    Rgs

    SET ARRAY

    Array Set Value at (0,0,0) to "Paris"

    Text set text to array.at (0,0,0)

    SAVE

    BT_SAVE on clicked Array Download as JSON with filename "Data.json"

    CLEAR

    Array Set Value at (0,0,0) to ""

    Text set text to array.at (0,0,0)

    LOAD

    BT_LOAD on clicked Array Load from JSON string "Data.json"

    Text set text to array.at (0,0,0)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is that the Load Action for the Array Plugin doesn't load from a previous JSON file that you saved. It loads from a string as stated in the dialog for the Action unfortunately. If you want to load a JSON files contents at runtime, you'll need the AJAX Plugin. Look for this tutorial on the Scirra site for how to do this: AJAX Example with Construct 2.

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