How to Create HighScore in CocoonJS ?

  • It's been a while since anything was written here. Has anyone implemented the iOS Game Center extension with construct and cocoonjs?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello,

    I'w searched entire forum for some usefull informations on this subject but theres no tutorial or example or something...

    Can someone please write in short some tutorial "for dummies" on how to implement gamecenter in CocoonJS?

    Thank you!

  • It's pretty easy actually. You log into your itunesConnect account, click on manage apps. Then choose Manage Game Center.

    <img src="http://www.elf-games.com/1.png" border="0" />

    Go through all the process of setting up your leaderboard and remember the leaderboard ID.

    Then in Construct 2, add the cocoonJS object. On the start of layout request login to game center.

    Then using the cocoonJS object choose when to submit a score or access the leaderboard based on the ID you created when setting it up.

    Sorry for the quick tutorial, I'll try to do an actual video tutorial of this soon.

  • ArcadEd

    I understand the whole setup outside of Construct. But how would you go about managing your events with the cocoonjs options inside Construct?

    If I wanted to make reference to a global variable for a highscore, how would I go about doing that in the Event Sheet?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)