An easier way to do high scores?

anithmukanithmuk Member Posts: 235
edited November -1 in Working with GS (Mac)
So my game has 5 worlds and I want to keep a high score for each world. Currently I have one score attribute and 5 high score attributes, one for each world. The only way I could think of doing high scores was to create 4 more score attributes and change my player actor in each world to add points to the score of whatever world its in. However I didn't plan ahead :p and doing this now would mean going into EACH INSTANCE of each actor on each level for 50 levels and changing every behaviour that affiliates with the "score" attribute and changing it to "score2" for world 2, "score 3" for world 3 etc. I also set up custom fonts for my score, so I would have to go into each of the 4 custom font actor instances in each of the 50 levels to change it to reflect the score from the world its in.

Obviously this is a daunting task and if anyone knows an easier way to set up different scores and high scores for different worlds or knows of any demos out there I could use I would be very grateful.

Thanks!

Comments

  • anithmukanithmuk Member Posts: 235
    Ahh, screw keeping it clean, university starts tomorrow I don't have time for that :)

    I decided just to create a 'world 1 score', 'world 2 score' etc, actors and put them on the last scene of each world. Then when the player finishes the last scene, the actor changes the score attribute to either 'world 1 score', 'world 2 score' etc or 'world 1 high score', etc, then I save the attribute. That way I can just use 1 universal score attribute and it keeps the programming to a minimum.
Sign In or Register to comment.