How do I restore elements on array without closing the app

0 favourites
  • 2 posts
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • Here's the scenario:

    1. After taking the quiz (which is stored on a textfile data and transfer it into array) the user will go to a scoreboard layout

    2. When the user try to retake the quiz it only shows blank or white page layout.

    3. In order to retrieve the elements of the quiz you need to close and open the app again. (which is not advisable)

    Problem:

    How can I restore deleted elements on array or in a textfile storage without closing and re-opening the app?

    or

    How can I transfer the values of the quiz array (arrayQuiz) to another blank array (arrayStorage), then if I try to retake the quiz the arrayStorage transfer its element to arrayQuiz again then so on and so forth.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use Array: Clear, then Array: JSON Load: "some json from webstorage or a server".

    Or

    Array.AsJSON to WebStorage under someKey. New Array. Array: JSON Load: from webstorage.

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