Dear Cocos2d Forum,
My name is Marc Frankel and I am struggling with a bit of a head scratcher. Right now I am going through the process of interrogating Game Center in to my game. The Achievement I'm working on now has to do with the player warping. So after not being able to find a tutorial to my likening I decided to use Apple's documentation their site. I have managed to convert most of it to "cocos2d code" and I can get the achievements/leaderboard to apear just fine. However when I use their code to submit a achievement it says it was successfully submitted, but after waiting 15 mins, it's still not in the GC Page. I know I am submitting the right ones I want and with the right % too. I am going to include the important code, but please forum, help me figure this annoying problem out. I have wasted 4 nights on this probably simple bug.
[self reportAchievementIdentifier:@"Warped_10" percentComplete:Warped_10];
[self reportAchievementIdentifier:@"Warped_100" percentComplete:Warped_100];
[self reportAchievementIdentifier:@"Warped_500" percentComplete:Warped_500];
[self reportAchievementIdentifier:@"Warped_1000" percentComplete:Warped_1000];
- (void) reportAchievementIdentifier: (NSString*) identifier percentComplete: (float) percent
GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: identifier];
achievement.percentComplete = percent;
[achievement reportAchievementWithCompletionHandler:^(NSError *error)
if (error != nil)
NSLog(@"WARNING: Achievment:%@ failed to be submitted", achievement);// Retain the achievement object and try again later (not shown).
NSLog(@"Achievment:%@ was submitted successfully", achievement);
Please let me know what is wrong and if you need more info from the project. By the way, I have #import on every file in the app. Thanks a bunch...