I am a bit puzzled by this.. I have set up global variables for levels and lives. The levels are working and saving but lives are resetting?
For example I have set my game up when they start the game it is with 7 lives. They can earn lives by watching a Rewarded Video Ad that adds 10 to the lives global, totalling 17.
But when the game is restarted the lives go back to 7 again and it does not save the amount of lives from the previous loading.
This is my code, I have tried to use localstorage but still the same. When the game closes and restarts the lives are reset instead of having the previous amount of lives earned.
Can anyone point out where I am going wrong here?