Change Attribute Based on Successful Game Center Login

ellfireellfire Member Posts: 187
edited April 2012 in Working with GS (Mac)
Does anyone out there have a method to change an attribute based on a successful Game Center log in? Ex. I have a GameCenter button that, currently, when pressed logs you into GC and shows leader boards/achievements. It also changes a boolean to true that is then saved and used to automatically sign in the player on all subsequent plays.

What I would like to do is have this boolean set to true ONLY if the user successfully logs into GC. So if they cancel the log in or it fails, the boolean would remain false. Similar to the way the IAP's work. Does anyone have any idea how to go about this?

Thanks

Best Answer

  • bazookaBenbazookaBen Posts: 318
    edited April 2012 Accepted Answer
    can't use GS to track when login is successful.

    what you can do is attempt to login every time the game starts. It's non-intrusive and doesn't slow the game, because it's a seperate thread running on the device.

Answers

  • ellfireellfire Member Posts: 187
    Thanks. I kinda figured that was the case. I just came up with a new way for the user to choose when to log in to GC that is a little less automatic, but will stop folks from activating game center when they don't want to use it.

    I originally had no triggering boolean so that as soon as the game launched no matter what, it would try to log you in to GC. Didn't fly well with beta testers who didn't use GC.
Sign In or Register to comment.