Gamecenter auto login

TokuharaTokuhara Member Posts: 94
edited November -1 in Working with GS (Mac)
Do I need to create a button to login into the gamecenter or I can just use a rule with gamecenter login function when users try to post score?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    what im doign is in the first scene of my game have a timer after .1 seconds, then a log into gamecenter behavior.

    That will ask you to log in if your not everytime you start the app. You need that .1 timer though or else it wont always work. That timer ensurse the behavior always works

    And also you can put a button on your menu with attribute to turn gamecenter on and off, and save and load that attribute, so that if the users device isnt supported by gamecenter or they just dont want it, it wont ask them to log in everytime you start the app if they turn gamecenter off
  • devjohnsondevjohnson Member Posts: 94
    I have a button to disable/enable gamecenter

    when you hit enable, you will log in
    it will save if it is enabled and log you in automatically next time you start the game if that attribute is true

    Also, it won't post scores, or allow you to access the leaderboard unless gamecenter is enabled on my button via the attribute.

    I made it like this so I wouldn't get a lot of people complaining about scores not reporting if they were having connection issues.
  • TokuharaTokuhara Member Posts: 94
    thanks for the tips guys
Sign In or Register to comment.