Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

Help with Game Center Leaderboard for Unity Game

SloshmonsterSloshmonster Posts: 29Registered Users
Hello!

First off, I don't program apps, I handle the business side and some graphic design. I am not one of those Chad Mureta get rich quick people. I design, manage, market, and code websites as well. I just haven't learned game languages yet. (I'm going to try to learn objective-c this summer though)

My team and I are working on a game right now and it is being coded with Unity (2d). I want to implement a Game Center Leaderboard (high scores only) into the game. The game will also have a local high scores page. Can someone point me to a tutorial on how to implement Game Center Leaderboards into Unity games?

Also, do apps usually just have their own local high score board in the game, then have the little game center icon which users can click to launch game center and see the public score board? If someone can tell me the best way to go about all of this, and/or a link to tutorials, that'd be awesome. What I would prefer is a local high score board (not a problem), then a button that takes you to game center where you can see everyone else's scores. As well as a button for the "game over" page that takes you to game center and highlights or goes to your score in the leader board (or tells you your rank).

I'm looking for simple. Nothing too complex. Local high scores, external game center leader board, and button for game over page that takes you to game center and to the score that you just earned (or tells you the rank for your last game's score). Exclude the last thing if that's really complex.

Any help is appreciated. Thanks! :)
Post edited by Sloshmonster on

Replies

  • xtr33mextr33me Posts: 32Registered Users
    Sloshmonster;437413 said:
    Hello!

    First off, I don't program apps, I handle the business side and some graphic design. I am not one of those Chad Mureta get rich quick people. I design, manage, market, and code websites as well. I just haven't learned game languages yet. (I'm going to try to learn objective-c this summer though)

    My team and I are working on a game right now and it is being coded with Unity (2d). I want to implement a Game Center Leaderboard (high scores only) into the game. The game will also have a local high scores page. Can someone point me to a tutorial on how to implement Game Center Leaderboards into Unity games?

    Also, do apps usually just have their own local high score board in the game, then have the little game center icon which users can click to launch game center and see the public score board? If someone can tell me the best way to go about all of this, and/or a link to tutorials, that'd be awesome. What I would prefer is a local high score board (not a problem), then a button that takes you to game center where you can see everyone else's scores. As well as a button for the "game over" page that takes you to game center and highlights or goes to your score in the leader board (or tells you your rank).

    I'm looking for simple. Nothing too complex. Local high scores, external game center leader board, and button for game over page that takes you to game center and to the score that you just earned (or tells you the rank for your last game's score). Exclude the last thing if that's really complex.

    Any help is appreciated. Thanks! :)
    Hi Sloshmonster...I currently am doing this myself right now in my game and I found that the easiest way was to use Prime31's plugin which can be found here prime31 - Unity iOS, Mac and Android Plugins . You may also want to see if you can find it on the unity store, since it will be more visual as to when there are updates and such. The plugin was pretty simple to implement. There were a few things that I had issues with but they were due to a couple dumb things I did on my side. Regardless, amazing freakin support from these guys. Honestly could say one of the best I have dealt with. I truly don't know if these guys sleep because every time I would ask a question I would have an answer almost within a half hour. Many people in the Unity community are using them also, so there is plenty of support.

    With that being said, just want to let you know of something I have found through the process. The sandbox is buggy, or rather slow. Make sure when implementing the plugin, that you of-course debug on the device because the game-center screen will not display unless you are on the device. Make sure to have your callbacks implemented, so you can see the messages being thrown for a successful submission or failed. This is important because the sandbox environment sometimes will make it look like nothing happened but in fact your logging will show that you successfully submitted / retrieved the scores or achievements.

    I hope this helps you some. Again I can't recommend them enough. The plugin will allow you to easily interact with game-center with the leader-boards and achievements. I currently am only using leader-boards and in a future update I will implement achievements. It comes with a demo scene also which helps get you up and running fast. Simply implement the events you are using, setup your leader-board/achievements in iTunes connect and make your few function calls at the proper locations and game-center will be integrated. They have it so you can use the default game-center screen or if you want you can customize one to make your own. Good luck!
  • SloshmonsterSloshmonster Posts: 29Registered Users
    xtr33me;437471 said:
    Hi Sloshmonster...I currently am doing this myself right now in my game and I found that the easiest way was to use Prime31's plugin which can be found here prime31 - Unity iOS, Mac and Android Plugins . You may also want to see if you can find it on the unity store, since it will be more visual as to when there are updates and such. The plugin was pretty simple to implement. There were a few things that I had issues with but they were due to a couple dumb things I did on my side. Regardless, amazing freakin support from these guys. Honestly could say one of the best I have dealt with. I truly don't know if these guys sleep because every time I would ask a question I would have an answer almost within a half hour. Many people in the Unity community are using them also, so there is plenty of support.

    With that being said, just want to let you know of something I have found through the process. The sandbox is buggy, or rather slow. Make sure when implementing the plugin, that you of-course debug on the device because the game-center screen will not display unless you are on the device. Make sure to have your callbacks implemented, so you can see the messages being thrown for a successful submission or failed. This is important because the sandbox environment sometimes will make it look like nothing happened but in fact your logging will show that you successfully submitted / retrieved the scores or achievements.

    I hope this helps you some. Again I can't recommend them enough. The plugin will allow you to easily interact with game-center with the leader-boards and achievements. I currently am only using leader-boards and in a future update I will implement achievements. It comes with a demo scene also which helps get you up and running fast. Simply implement the events you are using, setup your leader-board/achievements in iTunes connect and make your few function calls at the proper locations and game-center will be integrated. They have it so you can use the default game-center screen or if you want you can customize one to make your own. Good luck!
    Thanks!!!! I really appreciate it! Very helpful. I'll relay this info to my programmer, because he said it was very difficult to do.

    When you said "They have it so you can use the default game-center screen or if you want you can customize one to make your own" are you talking about the scoreboard in my app or the one on game center? And do you usually have the game center info integrated in your app's high score board, or do you just have a link to the game center scoreboard?

    Thanks again!
  • xtr33mextr33me Posts: 32Registered Users
    Glad I could help :) The cutomization I was speaking about was the in-game scoreboard. I personally like the default gamecenter one because users are already familiar with it, however if you have a theme that you strongly want to stay with, the green gamecenter scoreboard may not go with it. This is where the plugin will allow you to make a call to a function that will pull down all the scoreboard info into an array and then you can display it how you want. The latter does take more work on your part since you will have to handle the visual representation of your scoreboard yourself, but again its nice that they provide the option.

    If you open most games that support gamecenter, you will see the default green gamecenter screen appear on the screen. This is what happens when you make a call to their function "showLeaderboardWithTimeScope", it will drop down the default gamecenter screen. Then you make your calls to populate the leaderboards or acheivements accordingly. Good luck!
Sign In or Register to comment.