Stencyl now supports Google Play Games out of the box. We're sticking this notice here to avoid confusion.
http://www.stencyl.com/help/view/google-play-games/=========
Google Play Games Services v0.1 extension for Stencyl
I have made this extension for my new game, which comes out very soon.
SETUP1) Install Extention
2) Google Play Developer Console
2.1 Set up the game in the Google Play Developer Console (
https://developers.google.com/games/services/console/enabling)
2.2 Create and set up your Leaderboards and Achievements
2.3 Create a linked application and auth it with your SHA1 fingerprint of the certificate
!!! very important !!!3)Edit
ids.xml file inside extention directory.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_id">APP_ID_FROM_CONSOLE</string>
</resources>replace
APP_ID_FROM_CONSOLE by your App ID from Google Play Game Services
HOW TO USE4)How to use extention
4.1 After game is started extention connects to Google Play Games Services
automaticaly!
4.2 To submit score you need to place "GooglePlay: submit score" block or call function
com.khlopin.GooglePlay.submitScore(LEADERBOARD_ID,Score);
4.2 To show Leaderboard: "GooglePlay: show leaderboard" or call
com.khlopin.GooglePlay.showLeaderboard(LEADERBOARD_ID);
4.3 To unlock achievement : "GooglePlay: unlock achievement" or call
com.khlopin.GooglePlay.unlockAchievement(ACHIEVEMENT_ID);
4.4 To increment achievement : "GooglePlay: increment achievement" or call
com.khlopin.GooglePlay.incrementAchievement(ACHIEVEMENT_ID,count);
4.5 To show achievements table : "GooglePlay: show achievements" or call
com.khlopin.GooglePlay.showAchievements();
P.S.
To test my game, you need to join google plus community "Denver2003 Games"
(
https://plus.google.com/u/0/communities/116834540641222921824)
and download game from
https://play.google.com/apps/testing/com.khlopin.imnotdrunkreleaseTo test Google Play Games Services into the game send me your Gmail and i'll add it to testers email list.