How do I make a highscore without webstorage?

0 favourites
  • 9 posts
From the Asset Store
In this template the music plays without looping in your game
  • Hello!

    This is the first time i couldnt figure something out by myself, which is why I depend on your help. I want to publish my first android game soon. I want to use CocoonJS but it doesnt support WebStorage. I just want to save a simple highscore and when the game is started it loads the highscore.

    I hope you have any idea how to solve this problem. Thank you

  • CocoonJS does support WebStorage.

  • Is there still any way to make a highscore without webstorage? I am almost done with my game and this is the only part I can't figure out. At the end of the game I'd like to show the highscore. Thank You.

  • In chrome the save game works well but when I test the game with the Cocoonjs launcher it shows the message (Alert, Javascript error. SyntaxError:Unexpected token ILLEGAL Webstorage_common.js,line ( col undefined). It doesnt seem to work at all. Do you have any idea what the problem is?

  • I used the clay.io plugin for my games, it supports leaderboards and achievements. But I don't know if it works with Cocoon JS.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It seems it doesnt work with CocoonJS ->

  • Does anyone know if its even possible to make a highscore with CocoonJS? There has to be a way to save/load data on mobile phone. Are there any other ways to do it? What about NodeWebkit or Array Load/Save.

  • Cocoon definitely does support WebStorage, so it's probably something to do with your implementation. I'm using WS for persistent stats in a game I'm currently working on and even with the current, rather buggy beta release, it's behaving perfectly.

    Otherwise, you can set up your own online score table with PHP and MySQL by following ArcadeEd's excellent tutorial. Obviously this requires a data connection. You should probably follow that tutorial even if you have an offline score system, as it deals with working with arrays.

  • Ok thank you, it is good to know that it is possible to use Webstorage. I will try to find out why it isnt working for me.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)