Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to reset Achievement progress for my GameCenter sandbox account?

I have a GameCenter Sandbox-Account have tested my game, earned achievements, etc. Now I've made some changes and want to test earning Achievements again!

Do I have to make an entire new Sandbox-Account or is there a way to reset my account?

like image 1000
col000r Avatar asked Feb 17 '12 10:02

col000r


1 Answers

The following code is from the Apple Documentation.

- (void) resetAchievements
{
   // Clear all locally saved achievement objects.
   achievementsDictionary = [[NSMutableDictionary alloc] init];
   // Clear all progress saved on Game Center
   [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error)
   {
      if (error != nil)
      // handle errors
   }];
}

Also have a look at Apple's sample project GKTapper.

like image 114
Richard Buckingham Avatar answered Oct 03 '22 05:10

Richard Buckingham