Does anyone know how I would save the number of moves when a person completes a level in my game. For example, after the person finishes the first level with 3 moves. It would show that I already played that level by darkening the button for that and having the number of moves underneath. I tried looking at the Cargo-Bot sample project, but it gets really complicated in the IO class. Thanks
See the STORAGE section of the documentation. You can use the saveProjectData, saveLocalData, or saveGlobalData. Use the corresponding read statements to read the info back.
And as the keys get complicated really quickly, instead of giving each level it’s own key, you can use concatenation (..
) to automate key generation.
can anyone give me an example with a simple set of code?