Game Center Leaderboard Basics

Tim_ATim_A Member, PRO Posts: 60
As i'm new to this, I just wanted to understand the basics of what is involved with posting your highscore to a Game Center leaderboard...

Most games I play don't require me to 'log-in' and the Game Center just welcomes me when I start playing. Is there an auto-login going on in the background?

I never seem to have to manually post my scores either... is there a way to automatically post the highscore?

For example... the dreaded Flappy Birds just seems to post my score in the background and there's a simple link to view the highscore leaderboard.

Is that something GameSalad can do or do we need people to click a login button then manually submit their score each time?

Thanks for any advice

Tim

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Check out our tutorials on Game Center on our YouTube Channel: https://www.youtube.com/user/Tshirtbooth/search?query=game+center

    In regards to your question, you do not need to have a button to post the high score. It could be triggered in a rule when the game over scene is displayed.
  • Tim_ATim_A Member, PRO Posts: 60
    Hi, thanks for your reply...

    I've just read this on the apple developer site:

    "Don’t create custom UI that prompts users to sign into Game Center. When people start your Game Center-enabled app—and they’re not already signed into Game Center on their device—the system automatically prompts them to sign in. Displaying custom sign-in UI is unnecessary and might confuse users."

    So do we delete/omit the login button?

    Then simply post the score automatically in the background, and provide a button for the leaderboard?

    That would explain how all these games i'm playing just have a single button for the leaderboard and no 'login' or 'submit score' buttons?

    Thanks again

    Tim

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685
    @Tim_A‌

    All you need to do is add the "Platform - Login" behaviour to an actor in the start screen. this will automatically log in players upon launching the game.

    You can then post the score in the background, usually at the same time as saving the score attribute at the end of the game. This is done by adding the "Platform - Post Score" behaviour.

    Hope this helps.
  • Tim_ATim_A Member, PRO Posts: 60
    Brilliant, will give that a go!

    many thanks for your help ;)
Sign In or Register to comment.