how toStore array in WebStorage then Disply W/o getting zero

Get help using Construct 2

Post » Fri Jul 03, 2015 8:42 pm

Hello Guys....
i really need help with this trivia game ...I need to store the answers then show it to the another layer
so what i did is, store the answers in the array then store the array in the webstorage..
then using foreach I display the array stored in the webstorage
BTW i use append and nextline so that the display text will be vertical
but i keep getting zero
000000
000000
000000
000000
the trivia game is a multiple choice(A, B, C, D)..i dont have any idea why i keep getting zero..i dont clear or erase any data in the webstorage
I've been stucked with this problem for a whole 2 weeks T_T..any help would be really appreciated
*sorry for my english*
B
3
Posts: 2
Reputation: 179

Post » Sat Jul 04, 2015 2:34 pm

I would recommend to use the dictionary instead of an array to store your answers.
It works the same way like an array, but with strings (for your andwers).
https://www.scirra.com/manual/140/dictionary
Image Image iTunes: Match3 | Google Play: Match3
B
100
S
35
G
30
Posts: 1,136
Reputation: 28,085

Post » Sat Jul 04, 2015 3:04 pm

thanks..ill use that
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: beohs, Blendi1223 and 13 guests