1: Getting Started
2: Building Logic
5: Game Mechanics
6: Advanced Topics
7: Testing & Tuning
8: The Last 10%
M1: Mobile - Intro
M2: Mobile - Basics
M3: Mobile - Services
M4: Mobile - Publishing
B: How-To Guides
3.0 Drafts (In Progress)
Game 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 Center
You 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.