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
1
Posts: 26
Reputation: 644

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
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, dimitriosfl, InfiniteRockets, jkmalau and 15 guests