Best Practices for Game Center Login?

921creative921creative Member, PRO Posts: 140
edited April 2012 in Working with GS (Mac)
Can someone tell me (or point me to) what the best practice is for logging a user into Game Center? Is it best to put the login behavior at the title screen? If someone doesn't want to sign up for Game Center, will they get prompted to sign up/login every time they start up the game?

Best Answer

  • MarkOnTheIronMarkOnTheIron Posts: 1,447
    Accepted Answer
    Yes it makes sense but it's always been like this. Take a look at all the games you've downloaded that have GC. In every one of them if you achieved something and then reset the game the achievement in GC will remain. So you're not alone.

    What you can do is to create the achievements to also be in the game, with custom made banners and a dedicated scene to show them. That way when you reset the game you will be able to reset them also. Obviously they will be out of sync with the GC ones but there's nothing you can do about it.

    As for the login problem I have in my games a page that shows up the very first time you open the game asking the user if they want GC or not. If the answer is yes I change an attribute and then every time the user open the game it will be automatically logged in. Then I have a button in the settings page that allow the user to turn on/of GC again if he wishes so.

Answers

  • 921creative921creative Member, PRO Posts: 140
    The other question I have, if you're not supposed to reset Achievements in Game Center, yet a user chooses to reset the game, won't achievements suddenly be out of sync?
  • stackpoolestackpoole Melbourne, Victoria, AustraliaMember, PRO Posts: 473
    edited April 2012
    Can someone tell me (or point me to) what the best practice is for logging a user into Game Center? Is it best to put the login behavior at the title screen? If someone doesn't want to sign up for Game Center, will they get prompted to sign up/login every time they start up the game?
    or you could simply make a login button
    i.e. when [touch] is [pressed] - use login behaviour

    & you can put this behaviour anyway you think is suitable
    The other question I have, if you're not supposed to reset Achievements in Game Center, yet a user chooses to reset the game, won't achievements suddenly be out of sync?
    I'm not really understanding but if you have a button to reset a game, you should also reset achievements in the same button!

    Hope this helps
    ~~
  • 921creative921creative Member, PRO Posts: 140
    @brendanzh926 GS tells you not to reset Game Center Achievements under the description in the Pro behaviors section. GS is there a reason for this?
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    I'm guessing the GSA reset behavior is for testing purposes. If you need to make sure your achievements trigger correctly, then you'll want to have the option of resetting them. This is why GS tells you to remove this behavior from your submitted build.
  • 921creative921creative Member, PRO Posts: 140
    @LiquidGameworks I realize that. But if a player resets the game, he resets the attributes that control the Game Center Achievements. Then it still shows he's achieved everything in Game Center but the game itself think he hasn't achieved anything. Does this make sense?
Sign In or Register to comment.