Switch to Book Layout1: Getting Started2: Building Logic
3: Actors
4: Scenes
5: Game Mechanics6: Advanced Topics7: Testing & Tuning8: The Last 10%M1: Mobile - IntroM2: Mobile - BasicsM3: Mobile - ServicesM4: Mobile - PublishingA: Troubleshooting
B: How-To Guides
C: ReferenceD: Resources3.0 Drafts (In Progress)
|
||
|
Level: Beginner
Game CenterContents
IntroductionGame Center is an Apple-operated service that records high scores, achievements, and charts these types of stats against those of friends and acquaintances. If you’re familiar with XBox Live, it’s similar.
For Stencyl, we’re primarily interested in getting games to display and submit high scores and achievements.
Note: For brevity, we’ve assumed that you’ve set up Game Center in iTunes Connect - otherwise none of the following will work. If you have not done that, read this article (starting at Step 5) for details.
Starting Game CenterYou must start the Game Center service through a behavior before using it. You want to do this as early as possible, preferably at the start of the game. For example, create a behavior that uses the following block (located under Game > Mobile) and add it to your starting scene.
When the Game Center bar appears, the player is signed in. You can check for this status using the following block, or you can use an Event (Add Event > Mobile > Game Center > Game Center is started) if you wish to be notified when this happens.
|
















