Hello, Im making a game with levels and coins. So i got a main menu, And a game.. But if i got coins on the game it doesnt save it if i go to the main menu, And the ''save'' option doesnt work for me because it saves the game and i only want it to save the coins... Is there a way to fix this?
Develop games in your browser. Powerful, performant & highly capable.
Are you resetting persistent objects when you go back to the game?
Why are you going back to the main menu after a game is ended?
If you mean you want to save a score that is a whole different question.
You can use Global Variables to save coins between layouts.
You can use local storage to save the amount of coins you collected.
I'm using local storage to save score.
https://www.scirra.com/manual/188/local-storage