Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2011, 02:24 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 79
Jaxen66 is on a distinguished road
Default How to add Game Center to a Quiz game?

Hi!

I have tried to figure out how i could integrate game center to my quiz game, and today i almost spend 6 hours on the problem. But i still haven't found out what is wrong. I have used this tutorial iOS SDK: Game Center Achievements and Leaderboards – Part 2. my guess would be that it's about something with the

- (void) reportScore: (int64_t) score forCategory: (NSString*) category
{
GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease];
scoreReporter.value = score;
[scoreReporter reportScoreWithCompletionHandler: ^(NSError *error)
{
[self callDelegateOnMainThread: @selector(scoreReported withArg: NULL error: error];
}];
}

Hope someone can figure it out, sorry for my bad english and that i am a newbie :P
Jaxen66 is offline   Reply With Quote
Old 10-23-2011, 03:18 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 79
Jaxen66 is on a distinguished road
Default ANY ONE?

Anyone please?
Jaxen66 is offline   Reply With Quote
Old 10-24-2011, 01:27 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 100
XcodeMagic is on a distinguished road
Default

Quote:
Originally Posted by Jaxen66 View Post
Anyone please?
I spent DAYS not hours on this problem, there are 3 tutorials that I found on the internet that tell how to do game center. two of them dont work, 1 does. you found the one that does not work.

This is the one that works

Game Center - SDK Tutorial #1 - YouTube

Its fast so pause when you need to. Most of the code is the same so keep it but re copy it in the right place and look over each letter.

DELETE all you did in the previous tutorial and start over with the link I gave you. It worked for me after 3 days of trying. Good luck. BTW the tutorial you have is good for making achievements but you need to get it working first

BTW in the tutorial I sent you, he skips the part where you make a game center app connection in itunes connect which is crucial so use this one ONLY for the part where they do that in minute 5:33

iPhone SDK- How To Add Game Center To Your App - YouTube

onward. Until you make the account and then go back to the other tutorial. Good luck. This worked for me no problem. Do exactly as the tutorial says and then get back to me.
XcodeMagic is offline   Reply With Quote
Old 10-28-2011, 04:29 PM   #4 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 79
Jaxen66 is on a distinguished road
Default Your the man XcodeMagic!

Thank you so much, i will look at these tutorials in the weekend and reply back if i get any problems

Do you have an app i can buy to support the great answer ;-)
Jaxen66 is offline   Reply With Quote
Old 10-29-2011, 02:14 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 100
XcodeMagic is on a distinguished road
Default

Quote:
Originally Posted by Jaxen66 View Post
Thank you so much, i will look at these tutorials in the weekend and reply back if i get any problems

Do you have an app i can buy to support the great answer ;-)
haha not yet But trust me very soon! i been working on an app game for months it will sell for 99 cents so i will let you know when its out

if you have any problems just msg here I will reply.. ultimately I can give you code level support since I did get it to work using the links i gave you.

AND YES.. It is annoying getting it to work, you would think it would be easy but its not.
XcodeMagic is offline   Reply With Quote
Old 10-29-2011, 08:47 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 79
Jaxen66 is on a distinguished road
Default

I am having alot of trouble! It's and tutorial for an old xcode program and i am on 4.2 (newest) i tried to download his source code, but it's and dead link. Do you have the source code?
Jaxen66 is offline   Reply With Quote
Old 10-31-2011, 02:31 AM   #7 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 100
XcodeMagic is on a distinguished road
Default

Quote:
Originally Posted by Jaxen66 View Post
I am having alot of trouble! It's and tutorial for an old xcode program and i am on 4.2 (newest) i tried to download his source code, but it's and dead link. Do you have the source code?
You tried downloading the source code from the utube video? but its a dead end.. well..... if the source code does not work just watch the video and do what he tells you to do. its all in the video. you dont need the source code to do what they tell you to do. I didint even notice the source code until now I just watched the video.
XcodeMagic is offline   Reply With Quote
Reply

Bookmarks

Tags
game center, quiz game

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 387
10 members and 377 guests
7twenty7, apatsufas, comicool, Creativ, Dalia, dansparrow, Duncan C, Murphy, pbart, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0