hello I have been trying to save the score but I have not been able to nor did I find the error
You’re reading in the stored value into a scene variable nivel_1_VE, and then immediately overwritng it with the value of the global variable Nivel1.
Why are you setting the scene variable to the value of the global variable, and then immediately after that set the global variable to the value of the scene variable? There are no conditions and they’re not subevents, so they’re both being actioned every frame.
Which variable has the score in it?
Also, once your autosave timer is greater tha 2 seconds, it will write to storage continuously for another 2 seconds (somewhere around 120 times) until autosavedelay is greater than 4 seconds. Add a trigger once with the autosave > 2 seconds condition.
is the global variable | Nivel1 |
and what I transfer is because I have stars and that’s why I want the punctuation to be saved
No lo entiendo . Añadir a disparo Eleven con la condición Autosave> 2 segundos.
You’re reading in the stored value into a scene variable nivel_1_VE, and then immediately overwritng it with the value of the global variable Nivel1.
Why are you setting the scene variable to the value of the global variable, and then immediately after setting the global variable to the value of the scene variable? There are no conditions and they’re not subevents, so they’re both being actioned every frame.
Which variable has the score in it?
Once your autosave timer is greater tha 2 seconds, it will write to storage continuously for another 2 seconds (somewhere around 120 times) until autosavedelay is greater than 4 seconds. Add a trigger once with the autosave > 2 seconds condition.
Actually, forget the trigger once. You don’t need an autosavedelay, because all it’s doing is adding 2 more seconds to the autosave action.
The following should do what you’re after :
Since v5.0.126 also add an start timer action in the begin event.
And a side note - if you read a storage into memory, you also need to close it to get it written from memory to storage again.
Yeah, I shouldn’t make the assumption the timer has been started elsewhere…