Multiple High Scores with LocalStorage

Get help using Construct 2

Post » Tue May 10, 2016 10:00 am

Hey guys, I seem to have run into a problem with local storage. Basically I have a high score system working the way it should, but I have since added more game modes. I decided to add a global variable (Mode) so that when I use local storage, I also use another condition (Mode=0, 1 or 2) along with the regular way of saving high scores. It works perfectly with 2 game modes but as soon as I add the 3rd mode it stops working.
B
16
S
2
Posts: 26
Reputation: 794

Post » Tue May 10, 2016 3:50 pm

JesseJames11 wrote:.. I decided to add a global variable (Mode) so that when I use local storage, I also use another condition (Mode=0, 1 or 2) along with the regular way of saving high scores...


One LocalStorage Key→ Array→HiScore Variable

Image
Image

arrayHS.capx


Three LocalStorage Keys→HiScore Variable

Image

HS012.capx
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct, Yahoo [Bot] and 28 guests