Hello All !
All My Tutorials Here
construct.net/en/tutorials/construct-tutorials-2525
In this file atached you will learn how to Save your game and load from server and generate Unique IDS
How it works :
Start of layout will create a new and unique ID for your users if not created and saved before
using this api
uuidgenerator.net/api/guid
After this, the game will save the coins ( or your own data ) into localstorage
After this you will see a button export to server , when click it will create a file ( yourid.json ) in the server with the data from localstorage
you can modify it and create files like txt , csv , xml etc
so your data will be saved in the server with your unique id
after you export ( not before ) will be available a button " import from server " and on click it will call the file with your ID from server load it back into your array and save the new data into your game
so its a save and load system game
the button will be available only after exporting , because if dont and user try to import a file tha doesnt exist will give a error
if you understand how it works you will see that you can do a lot of things like give a user the ID and when the user uninstall the game and install again in other cellphone , pc etc .. he can put the id and load the data , dont need to create a login system
Download Files Here
dropbox.com/s/ntol2jktpfmgyxf/CreateFilesInServer.zip