High score set up...

nikstaanikstaa Member Posts: 65
edited November -1 in Working with GS (Mac)
Hey guys,

I need to set up scoring in my game, which would include remembering a high score

The high score scene is triggered by a timer, which when it counts down to 0 it changes scenes to the high score scene.

Need help, this has been troubling me for ages...

Comments

  • nikstaanikstaa Member Posts: 65
    nikstaa said:
    Hey guys,

    I need to set up scoring in my game, which would include remembering a high score

    The high score scene is triggered by a timer, which when it counts down to 0 it changes scenes to the high score scene.

    Need help, this has been troubling me for ages...

    Thanks, NiK

  • hotMagichotMagic Member, PRO Posts: 266
    Make a variable for the high score, and make a variable for ingame score. At the end of the level, do a comparison. If ingame score > high score, then make highscore = ingame score. Then use the Save action to save it to a variable so that it saves. Do a timer for a few seconds, then do change scene action to go to high score.

    Each time you start the game, like at your title screen or something else at the beginning, do a load action to assign the saved variable to high score.
  • nikstaanikstaa Member Posts: 65
    Thanks, but it's still not working.

    i have two texts one saying 'best score' and the other saying 'score'. the best score should show up with the best score but it shows the score you just recently played and the one that says score doesn't even show anything except for 0. :|

    Thanks NiK
  • hotMagichotMagic Member, PRO Posts: 266
    The current score...It's saying 0 all the time? Are you throwing scores into it? And this is a game-level variable?
  • nikstaanikstaa Member Posts: 65
    what exactly do you mean by game-level variable ... sorry for asking but i m new.

    by the way i m playing the game to get scores.
  • cyclops-gamescyclops-games Member Posts: 19
    Hi, there's a series of excellent tutorial videos on the gamesalad cookbook which explain all you need to know about creating and saving high scores.
    I've just been through these for my game and they helped loads
    Here's the first:


    Cheers
  • nikstaanikstaa Member Posts: 65
    thanks cyclops-games but i have already seen most of them and this is just one area that it doesn't help me with

    Thanks NiK
  • nikstaanikstaa Member Posts: 65
    PLEASE PEOPLE HELP ME...I M REALLY STUCK
  • hotMagichotMagic Member, PRO Posts: 266
    By game-level variable, I meant it doesnt belong to an object. That way it will persist across levels. What are you stuck on now?
  • nikstaanikstaa Member Posts: 65
    Hey guys,

    Thanks to you, problem solved, really appreciated all your help :D.

    Have an awesome day!!!

    Thanks NiK.
Sign In or Register to comment.