How to save hiscore for each level separately?
famekrafts
Member, BASIC Posts: 834
I just noticed my hiscore are getting saved and loaded at each stage but they are simply getting overwritten for the previous stage, how to make each stage or level hiscore to be stored separately? If anyone has a demo or video for hiscores saving loading please let me know.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
highscore1
highscore2
highscore3...etc
And I do the same thing for regular scores.
Score1
Score2
Score3...etc
Lots of attributes to keep track of for saving and loading in each level, but it does work. Tables would probably be more efficient now.
you could have highscore alone but each scene or level make it update the table cell value for the respective level.
Have the behaviour on the main actor. Change the attribute when you pass another actor(level) or change scene. That sort of thing. Tables will do it well.
I will be doing a similar thing.
Be warned that you will not see any data in your writeable tables. But it is there! You need to display them in the game to see them.
Tables are definitely worth looking into! Once you get how they work, they're loads if fun!
The easiest way to test, which is what I did, create new actor, and in that actor, tell it to display the text of the table cell data you want. Place that in your hud and then you can see the table being updated on the fly.
(the project file is in the description too!)
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS