Skip to main content
Participating Frequently
February 17, 2014
Question

How to save a high score?

  • February 17, 2014
  • 1 reply
  • 584 views

Hi, I almost finish a game, I get my score and just need to save it to the "highscore screen" movieclip. Basically all I want is to take my score to the high scores, which will be a list of maybe 5 scores for example, and when you get a higher score, replace the lower one with it. Anybody knows the code for that?

Thanks in advance

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 17, 2014

use the sharedobject to have each user save their personal best scores.

Participating Frequently
February 17, 2014

But I need a button to save them right?

kglad
Community Expert
Community Expert
February 17, 2014

you don't need a button.

just save the score (if it's a high one) when a game/level/whatever is complete, or even when the player's score is updated and qualifies.