How so save some attribute values?

GameFactoryStudiosGameFactoryStudios Member Posts: 16
edited January 2012 in Working with GS (Mac)
Good Morning,

I need some help from the best community ever :)
I have two attributes: Score and Best
So when score is > best, best is constrained to score.

But now I want to save the best 5 score values. So I created 4 new attributes: best2,best3,best4,best5
I tried to set them like the first one but this does not work...

May someone help me out there?
That would be great...

Alex

Comments

  • tutysestutyses Member Posts: 134
    edited January 2012
    You should create and order first, creating a counter, when the player dies its 1 and best1 will save the current score, then when he dies again add 1 to the counter, making best2 to save the score at the moment

    what time is it over there?
  • GameFactoryStudiosGameFactoryStudios Member Posts: 16
    The score changes each second to +10. When the player dies, the score is saved and does not change anymore...
  • GameFactoryStudiosGameFactoryStudios Member Posts: 16
    But why do I need a counter?

    I had a rule that constrained the 3rd best score also, I also saved attribute, but each time when reseting the scene, the attribute was changed back to 0..

    Alex
  • tutysestutyses Member Posts: 134
    Oh i missunderstood you want to save the 5 best scores not the Last 5 scores sorry
  • tutysestutyses Member Posts: 134
    Just compare the attribute Best with the other ones (1,2,3,4) and compare it between them too, so if best is more than best 3 but less than 2 it will save the score on the attribute 3, of course in the initial state all will be 0 so it will save it on the first one
  • GameFactoryStudiosGameFactoryStudios Member Posts: 16
    S0 there is no way to save them?
    I mean the best score and the best2 are saving but the 3rd one not.

    You mean when game.score < game.best
    constrain best2 to score
    ??

    Because I want to have a own scene with the best 5 scores displayed...
  • GameFactoryStudiosGameFactoryStudios Member Posts: 16
    To make it more clear:

    1. The Score attribute which set's the actually score in the game.
    2, The Best attribute which is always set to the best score ( works)

    3, 4 other attributes that are set to the best 4 scores ever.

    How do I get this work? The best and the first additional attribute are working fine with constrain, but the 3rd best score does
    not work ....
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    You need a high score template. Gshelper.com has a free video I think
  • GameFactoryStudiosGameFactoryStudios Member Posts: 16
    Hey,

    I just found interpolate instead of changing...do you know the link?

    ALex
Sign In or Register to comment.