Hello! Are you storing the values in local variables? I do like this:
In the first layou of the game I retrieve the local data I insert into global variables. This way the values are available all the time.
Yes I did that!
As you can see, I needed to compare some values.
I have now 4 variables which I need to compare values to know what is the bigger value to store 2 variables.
Variable "Coins" that colects current coins, so I compare with the "BestCoins" variable to know what is bigger and store in the LocalStorage. So I colect that value to know how many coins I have and the bigger value I keep in "BestCoins" variable.
I have the same for Diamonds:
Variable "Diamonds" that colects current coins, so I compare with the "Diamonds" variable to know what is bigger and store in the LocalStorage. So I colect that value to know how many Diamondns I have and the bigger value I keep in "BestDiamonds" variable.
The problem is that I get that "Best..." variables values and I subtract 100 from Coins to add 5 to Diamonds Touching the Button, but it is not storing that values.
How can I store this information by Touching the Button?
It looks like it's working on Math, but it is not storing that values with the commands I did in those events:
It resets the old value when I use Back button to go to the Main Menu.
This is my first game on Construct. I'm completely newbie...
Please Help Me!