GameCenter behaviordoesn't update score
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
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.
Tks for this very clear advice.
So like this: this actor is in the first scene:
and
So will it update score of players?
And in itunesconnect I create a interger score, best score.
Seems right. It should work.
Tks! I update my app then!