Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to save a high score?

New Here ,
Feb 16, 2014 Feb 16, 2014

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

TOPICS
ActionScript
561
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 16, 2014 Feb 16, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2014 Feb 16, 2014

But I need a button to save them right?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 16, 2014 Feb 16, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines