How do I restore elements on array without closing the app

Get help using Construct 2

Post » Thu Aug 06, 2015 12:42 pm

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.
B
12
S
1
Posts: 63
Reputation: 633

Post » Thu Aug 06, 2015 3:45 pm

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.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"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
22
S
6
G
1
Posts: 1,414
Reputation: 4,822


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 8 guests