i am developing a sport application in IOS using Game Center integration. I have already configured all Game Center functions in my app, the only thing that is driving me crazy is the fact that i cannot increase the achievement percentage. I want to do something like this:
GKAchievement *ach1 = [[GKAchievement alloc] initWithIdentifier:
@"1"];
ach1.percentComplete=ach1.percentComplete+50;
Is there a way to increse the percentage like this? Because i have 2 achievements in Game Center that reward the player for everytime he plays the game. For instance:
- Achievement one: Play 5 games
- Achievement two: Play 10 games
So my main goal is to get the previous achievement percentage and increase it with a constant. The fact is ach1.percentComplete always return 0. Is there a way to make it return the previous percentage? Thanks for answering.