How do I create a high score for each level

0 favourites
  • 11 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • Hello, i´m making a game, has got three levels and i need a high score for each level. I made the first level high score but when i´m going to make the high score of the next level it stays in 0 points and isn't save the new scores.

  • i don't get you, do you want to save the individual scores for each level separately and make it available in the next level or what? Also, do your levels run in different layouts.

    Your choices are to store in array, webstorage or a simple global variable.

    Better still explain your question very well.

  • Yes, i need individual scores for each level separately

  • then create then in separate variables i believe

  • then create then in separate variables i believe

    I try with different global variables in different layers and only work in the first level.

  • share a capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • share a capx

    Here is the capx: https://www.dropbox.com/s/i5m8t30h3o5uc ... Score.capx

  • You don't need to duplicate events sheets for every level/layout. You should use a single events sheet and just track the level stuff separately. Just keep a global variable with the level number and append this to the HighScore tag when using WebStorage.

    The immediate problem is you didn't change the 'Add 1 to CutObjects" action. (Should have been CutObjects2).

  • "The immediate problem is you didn't change the 'Add 1 to CutObjects" action. (Should have been CutObjects2). "

    Yes, was this, thanks so much.

  • You don't need to duplicate events sheets for every level/layout. You should use a single events sheet and just track the level stuff separately. Just keep a global variable with the level number and append this to the HighScore tag when using WebStorage.

    The immediate problem is you didn't change the 'Add 1 to CutObjects" action. (Should have been CutObjects2).

    Hi friend,could you please write an example of using webstorage with tag of the level number?????

    Many many thanks!!!!!

  • Hi,

    i use an Array and Webstorage for that

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