GameCenter behaviordoesn't update score

stefdelecstefdelec Member, PRO Posts: 146

Hi,

I just released a game that I tested in "sandbox' mode. I thought the gamecenter was working properly but no in real mode...

Basically, you play a game and within 2 minutes you have to make a lot of points. At the end of the game, your score is posted to gamecenter, like that you can compare to others.

So I made a behavior in the very first scene: login to game center (doesn't appear on the screenshot). It is a behavior alone, triggered when the scene starts. And another if pressed, post score:

Then you start the game (scene 2). At the end of the 2 minutes, it triggers "change scene" and post score.

Comments

  • stefdelecstefdelec Member, PRO Posts: 146


  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276
    edited October 2015

    In both rules, remove the "Platform - log in" behavior. You don´t need to log in every time you want to add score or view the leaderboard. It´s enough if you log in at the beginning of your game.

    It´s not good to have "post score" and "view leaderboard" in the same rule.
    You could put the "post score" outside the rule. This way the score will be posted automatically after the game, and the player doesn´t have to do it manually.

    Leave the "show leaderboard" behavior in the "touch is pressed" -rule.

    EDIT: Also make sure your leaderboard ID is NOT written in the expression editor. Write it straight into the text field.

  • stefdelecstefdelec Member, PRO Posts: 146
    edited October 2015

    Tks for this very clear advice.

    So like this: this actor is in the first scene:

  • stefdelecstefdelec Member, PRO Posts: 146

    and

  • stefdelecstefdelec Member, PRO Posts: 146

    So will it update score of players?

  • stefdelecstefdelec Member, PRO Posts: 146

    And in itunesconnect I create a interger score, best score.

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Seems right. It should work.

  • stefdelecstefdelec Member, PRO Posts: 146

    Tks! I update my app then!

Sign In or Register to comment.