Jump to content


Photo

GameCenter Things


  • Please log in to reply
48 replies to this topic

#41 alexfislegend

alexfislegend

    GMC Member

  • GMC:Member
  • 196 posts
  • Version:GM:Studio

Posted 28 May 2012 - 06:24 PM



How do I enable the GameCenter for my app? Because you wrote that you have to create an app to enable the gamecenter. But if you create the app on Itunes connect, isn't it already posted into Itunes Store? Isn't it possible to enable game center while developing the game?


Create the app in iTunes connect and then enable gamecenter from the control panel.


Thanks. I am just afraid of creating the app in itunes connect, because it seems that it is going to be posted to the appstore. I mean you even have to select the pricing..?


It can not be submitted until you have uploaded the code for your Application/Game. So it will just sit there and let you set everything up until you add the code and submit it for review.

#42 Pstadler

Pstadler

    GMC Member

  • GMC Member
  • 58 posts

Posted 28 May 2012 - 08:06 PM

Well, thanks for your advices! I managed to create an app now in itunes connect! I created a leaderboard and enabled it with one active board. But my app doesn't appear in gamecenter. Maybe because I haven't uploaded it yet? Is it possible to test if it works??
  • 0

#43 Hugo_Peters

Hugo_Peters

    herp derp

  • GMC Member
  • 447 posts
  • Version:GM:Studio

Posted 28 May 2012 - 08:15 PM

Well, thanks for your advices! I managed to create an app now in itunes connect! I created a leaderboard and enabled it with one active board. But my app doesn't appear in gamecenter. Maybe because I haven't uploaded it yet? Is it possible to test if it works??

You really should use the search function...

-Create test user
-Login with sandbox
-Make sure all App ID's are correct
-Use the login code
-When nothing appears, try again.
  • 0

#44 Pstadler

Pstadler

    GMC Member

  • GMC Member
  • 58 posts

Posted 28 May 2012 - 09:24 PM


Well, thanks for your advices! I managed to create an app now in itunes connect! I created a leaderboard and enabled it with one active board. But my app doesn't appear in gamecenter. Maybe because I haven't uploaded it yet? Is it possible to test if it works??

You really should use the search function...

-Create test user
-Login with sandbox
-Make sure all App ID's are correct
-Use the login code
-When nothing appears, try again.


Thanks, got it now! My game is now in game center. On the previous page you wrote that you have posted a score to a leaderboard. Which code did you use for it? Because
if(achievement_is_online()){
        achievement_post_score("Leaderboard name...",5000); 
    }
does not work..

I have to use the Leaderboard Reference Name, right?

Edited by Pstadler, 28 May 2012 - 09:26 PM.

  • 0

#45 Hugo_Peters

Hugo_Peters

    herp derp

  • GMC Member
  • 447 posts
  • Version:GM:Studio

Posted 29 May 2012 - 06:58 AM

It's a bit weird. First of all, after the score is submitted, you won't be taken ro GameCenter. You have to go to the GameCenter app.

Second, I don't know why, but my score became visible after I logged out and in with another test account.

Third, use the
achievement_available()
function instead of the
achievement_is_online()
function.

Hope this helps!
  • 0

#46 Pstadler

Pstadler

    GMC Member

  • GMC Member
  • 58 posts

Posted 01 June 2012 - 06:04 PM

It's a bit weird. First of all, after the score is submitted, you won't be taken ro GameCenter. You have to go to the GameCenter app.

Second, I don't know why, but my score became visible after I logged out and in with another test account.

Third, use the

achievement_available()
function instead of the
achievement_is_online()
function.

Hope this helps!


Thanks for your help! But I still can't see any score in my gamecenter. I get no error, so I think that it basically works.. I tried to create two test users and log in with them.. No scores in game center...
  • 0

#47 Pstadler

Pstadler

    GMC Member

  • GMC Member
  • 58 posts

Posted 18 June 2012 - 09:16 PM

Has anybody already used game center in an app?? I have the same problem, the connection seems to be okay but no scores are posted. Logged-in and posted with two different accounts...
  • 0

#48 Hugo_Peters

Hugo_Peters

    herp derp

  • GMC Member
  • 447 posts
  • Version:GM:Studio

Posted 18 June 2012 - 09:20 PM

Has anybody already used game center in an app?? I have the same problem, the connection seems to be okay but no scores are posted. Logged-in and posted with two different accounts...

Yes I got it to work. Just mess around a bit, you'll figure it out! ;)
  • 0

#49 GameDevDan

GameDevDan

    Procrastinator

  • Reviewer
  • 941 posts
  • Version:GM:Studio

Posted 19 June 2012 - 10:39 AM

Has anybody already used game center in an app?? I have the same problem, the connection seems to be okay but no scores are posted. Logged-in and posted with two different accounts...


Yes, I've used it.

I think this delay is an iOS thing rather than a GameMaker thing. If you wait for a bit / fiddle around with the GameCenter App / Sign in and back out it will usually bring up your new scores and achievements. I've noticed this with plenty of non-GM games (e.g. Lostwinds or Cut the rope says I have an achievement but it doesn't show up in GameCenter until several days later).

I haven't used leaderboards just yet but I can assure you that achievements work fine.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users