The local storage will save the variable value, maintaining itself at the same value even if you close the game.
After included the LocalStorage object:
On start of layout..
---->Local Storage Check for item ("vidasKey")
On Item found ("vidasKey")
----->Set value vidas to (LocalStorage.Itemvalue)
On Item missing ("vidasKey")
------>Set LocalStorage Item ("vidasKey") to 0
On end of layout
------>Set LocalStorage item ("vidasKey") to vidas