Hi brothers,
I use global variable to select level (lock, unlock & completed), beside i need save & load level. But i fall in problem when "on start of layout --> currentLevel set value = 1. You are able to view file attach below,
https://www.dropbox.com/s/9bhe1251zmngyq1/select_level.capx
How can i use load & save with webstorage, any heroes join to help me,
Lots of love,
Jack
Maybe this will help you
scirra.com/tutorials/266/webstorage-how-to-save-ingame-information
Develop games in your browser. Powerful, performant & highly capable.
The webstorage value you retrieve is a string.
use int(WebStorage.LocalValue("currentLevel")) to set the number of currentlevel on load.
Thanks LittleStain,
So how can I set "unlock" for 1st Array on start layout,
Are you able to edit on direction then post it here,
Jack,
This topic is about saving arrays to webstorage