TOTAL game score...
I'd like to make an attribute that records the player's total game score.
I have 60 levels. Do I need to make the change attribute of lvl1score+lvl2score+lvl3score+lvl4score... etc.??
I would like to make it so that if the player plays a level and beats it with 100 pts, then plays again and beats it with 200 pts, the 200 pts is factored into the equation and will replace the 100 pts. The way I'm thinking about doing this is have a "change attribute" after all my Load Attributes in the beginning/opening scene.
I want Total Game Score to be what's submitted to GameCenter.
Any thoughts?
I have 60 levels. Do I need to make the change attribute of lvl1score+lvl2score+lvl3score+lvl4score... etc.??
I would like to make it so that if the player plays a level and beats it with 100 pts, then plays again and beats it with 200 pts, the 200 pts is factored into the equation and will replace the 100 pts. The way I'm thinking about doing this is have a "change attribute" after all my Load Attributes in the beginning/opening scene.
I want Total Game Score to be what's submitted to GameCenter.
Any thoughts?
Comments
Example:
Change Attribute:
Game.TotalScore to: Lvl1score+Lvl2score+Lvl3score+Lvl4score+Lvl5score+Lvl6score+Lvl7score ... Etc
Keep track of the high score for each level (you may be doing this already).
Then all you need to do is this.
If game.levelscore is > game.level10highscore
change game.TOTALscore to game.TOTALscore +(game.levelscore-game.level10highscore)
that way you are only adding the improvement to that level's score and not doubling up so to speak.