Hi
I have 3 different layouts(start screen,layout 1 and layout 2).I have a global variable say coins.The coins which i collect in layout 1 and layout 2 are added to coins variable and i wanted this earned coins to be displayed on start screen layout and store this value in local storage and when i again earn the coins this newly earned coins should be added to the value which we stored in the local storage and displayed on start screen.
Please help me.
Thanks in advance
What exactly is your question? Have you tried this?
Are you asking how to do it completely?
Do you have a CAPX to upload for us to look at?
yes am asking how to do it.Please help me out of this.
Have you looked at the information on it? https://www.scirra.com/manual/188/local-storage
Or, an example? https://www.scirra.com/tutorials/1461/h ... age-plugin
In general, you need to call the storage, then do a on trigger for it.
For saving the details, same thing. Save it, and then check the trigger for when done.
Yes i have tried doing this but could not get it.
what have you tried? Please upload your project.
Develop games in your browser. Powerful, performant & highly capable.
could you please give your email id so that i can send you the file
My example for local storage;
this: https://www.dropbox.com/s/0wt9pdcfay3rz ... .capx?dl=0
and
that: https://www.dropbox.com/s/vh3n39sk8z2dh ... .capx?dl=0