how do you handle people who choose NOT to sign in with game center?
This is how i'm doing it. Works great if the user chooses to sign in with Game Center, but if they refuse.. then all kind of errors occur. I would like for a user who chooses not to sign in with game center to never have to deal with it again..
I thought about using a key, but my attempts were unsuccessful. the trick i'm running into is when the game is run for the first time.. i have to (i assume) save something AS the key data.. but then right after have to ask "is this the first time?" and immediately say "no" after that question.. just not sure i'm doing things in the right order or right way..
Just wonder if there is a "Best practices" approach to insuring smooth non-invasive and intuitive use of game center in game salad?
Also does anyone know if it's ok to use the Game Center icon in a game? like to make it a game center button?
Thanks!
Caleb
I thought about using a key, but my attempts were unsuccessful. the trick i'm running into is when the game is run for the first time.. i have to (i assume) save something AS the key data.. but then right after have to ask "is this the first time?" and immediately say "no" after that question.. just not sure i'm doing things in the right order or right way..
Just wonder if there is a "Best practices" approach to insuring smooth non-invasive and intuitive use of game center in game salad?
Also does anyone know if it's ok to use the Game Center icon in a game? like to make it a game center button?
Thanks!
Caleb
Comments
just one more thing for GS to fix.
IMO just saying
As far as I know, you can use the GC icon, you just can't recreate the green felt wood border feel in your app.
1st Way:
Create a boolean attribute and call it Game Center or GC.
Now make that the first time someone plays the game appear a message do you want game center on or off?
Than make 2 actor. One called GC On & GC Off
Put both actor on the message and make that:
Button ON - If touch is pressed change attribute GC or Game Center to on
Button OFF - If touch is pressed change attribute Gc of Game Center to off
Than in all the actors you putted something with game center create a rule and in it you want to put the game center behavior and:
If attribute GAMECenter is on
post score in game center
login to game center
otherwise
don't put nothing in here
2nd Way:
Create a boolean attribute and call it Game Center or GC. Let it true.
Now create a button that will the Game Center attribute true or false so you make a quick rule:
If touch is pressed and attribute Game Center is true
change attribute game.Game Center to false
If touch is pressed and attribute Game Center is false
change attribute game.Game Center to true
Simple as that now you want to put the login to game center and all those things post score to game center the following code:
If Attribute Game Center is True
Login to game center or Post Score or view leader board
If you didn't understood just post here a comment and ill answer as soon as i can!
game.GCon boolean
Use a Pause Game behavior when your Title Scene is loaded
offscreen controlActor
Timer: After: 0.1 seconds √Run to completion
--Pause Game: Go to scene: pauseScene or whatever
Timer: After: 1 seconds √Run to completion
--Destroy this actor
pauseScene:
with the buttons for on/off in a nice box that covers your Play/Instructions/Options/Continue buttons on the titleScene
onButton:
Rule: when
touch is pressed:
--changeAttribute: game.GCon to true
--Unpause Game
offButton:
Rule: when
touch is pressed:
--Unpause Game
not too hard to put the Rules: when game.GC is true on the few score/achievement actors in the game
when the player restarts the game, they have the option to turn GC on.
@};- MH
however I believe that if the game shows any promise, I may go back and incorporate a more elegant solution like mentioned @motherhoose
Thanks!
Caleb