How do I integrate Game Center?

Get help using Construct 2

Post » Sun Apr 06, 2014 11:09 am

So, how exactly do I integrate game center in my C2 game with cocoonjs? Basically I want just what clay.io provides, a nice high score leaderboard with post to facebook and tweet buttons.
But I've searched google and this forum and didn't manage to find any tutorials yet. So how do I do it, is it easy like clay.io, do I need to know code, what are the steps?
Thank you.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Mon Apr 07, 2014 10:56 am

Bump?
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Tue Apr 08, 2014 9:06 am

Nobody, nothing?... :cry:
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Tue Apr 08, 2014 9:45 am

It is relatively simple.

First thing you need to do is to add a leader board to your app on iTunes Connect and give it a Leaderboard ID there.

Then, in C2 - first "Request Login" (I did this on start of the layout) and then on your hiscore-event "Submit score" using the Leaderboard ID that you gave on iTunes Connect.

There you go!

Oh and you should know there is a CocoonJS bug on the "Show Leaderboard" action - it opens the leaderboards nicely but when you get back to your game the touch controls are stuck. I reported and documented this to Ludei already, so hopefully they will fix it soon.
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828

Post » Tue Apr 08, 2014 9:48 am

Also, here is a nice tutorial by juannn91 about Twitter and FB: https://www.scirra.com/tutorials/914/fa ... r-cocoonjs
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828

Post » Mon Apr 28, 2014 10:06 am

K, thank you. Hopefully it will be as easy as you make it sound if not, in the words of the great gov., I'll be back.:)

P.S. Sorry for the late reply.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335


Return to How do I....?

Who is online

Users browsing this forum: ksiads and 1 guest