Jump to content

Need help to store and get values from localStorage..


Learning By Doing
 Share

Recommended Posts

Hello!

 

I need help to store and get values from localStorage, I did manage to save my values to localStorage, but I got some problems when running the game next time.. Maybe someone can give me some examples how I could store and then view the values next time I start the game?

 

I need help to save playerLevel, totalExp & nextLevelExp to localStorage, and then view the values and update them.

 

 

 

 

 

 

--Edited--

I did solve my problem.. I just ha to use  parseInt  when I was getting the data from localStorage..

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...