How can I make that my game saves stuff?
I don't think that there was a tutorial...
The only way you can sort of do that is by useing the Webstorage plug-in.
If you want to maintain a Highscore list, then you have to use another technique like http://www.scirra.com/tutorials/259/easily-add-leaderboards-to-your-game
Develop games in your browser. Powerful, performant & highly capable.
Two other possibilities:
1) If Php is a friend of you then you can do this comfortable with the AJAX-Plugin:
Tutorial
2) If you want to store something on a client(= eg cookies) than the testing would be big part - if you want that your game runs on many devices (Pc,I-phone,Android..). If Javascript is a friend of you then you can do "the local storing" this with pure Javascript and the Call Javascript-Plugin.
Thanks for your replies.
The only way you can sort of do that is by useing the Webstorage plug-in. If you want to maintain a Highscore list, then you have to use another technique like http://www.scirra.com/tutorials/259/easily-add-leaderboards-to-your-game
Is there a tutorial for the webstorage plugin?
The link gives me an internal server error :(
There is no tutorial I know of, but maybe someone will write one soon. Ist basicly quite simple to manage. You just have to store the variable into the WebStorage Object with a refernce to a key...
Maybe this helps: WebStorage
Internal Server Error.
Why do I always get Internal Server Errors??????
Edit: Went to the Tutorial manually.
The server error is a good question....and you are not the only one getting this
It's probably me, who is to stupid to post a link. Sorry for that <img src="smileys/smiley19.gif" border="0" align="middle" />
It's not you. It's the same link but yours doesn't work somehow... ?!?!?
Take a look at this tutorial I wrote a while ago: http://www.scirra.com/tutorials/245/how-to-series-in-game-shop
I showed users how to save things to webstorage in the tutorial. Take a look <img src="smileys/smiley1.gif" border="0" align="middle">
> Maybe this helps: WebStorage Internal Server Error. Why do I always get Internal Server Errors?????? Edit: Went to the Tutorial manually.
> Maybe this helps: WebStorage
The posted link has a space at the end. If you click the link and then remove the space at the end of the URL, the page loads without any issues.