Saving high scores to different 50 levels? [solved]

http_gamesaladhttp_gamesalad Member Posts: 1,340
edited November 2014 in Working with GS (PC)

I have 50 levels in my game and I want my score to be saved to those individual 50 levels depending on your score. I tried to use a game.highscore but its not saving right I tried using a self.highscore but I cant load it on my splash screen. Can anyone help me with this issue?

Comments

  • pHghostpHghost London, UKMember Posts: 2,342

    One Word.

    Tables.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    Two words.
    Didn't work.
    @pHghost‌
    The tables weren't saving the highscore right at all. I came on here for help but I didnt get to much

  • zweg25zweg25 Member Posts: 738

    Tables is probably the best way and easiest to maneuver.

    Another way that could work (you could run into issues), is have game.highscore and save it to game.level. Then load attribute game.level

    That way will be difficult and is worse than tables which I highly suggest.

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    tables are the way to do this. saving and loading 50 attributes is a huge pain

    tables will work if you do it right. if it's not working you'll have to post your code so we can see what is wrong.

  • pHghostpHghost London, UKMember Posts: 2,342

    @http_gamesalad said:
    The tables weren't saving the highscore right at all.

    Well, in the first post you only said you tried to use game.highscore and self.highscore, nothing about trying to use tables. You'll need to describe things better, then.

    What is your rule like and how were the tables saving the scores, if not right at all?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @phghost & @zweg25‌ never mind I got ! I thought I posted this the same night. I had the wrong value.

Sign In or Register to comment.