[PLUGIN] Clay.io (leaderboards & achievements)

From the Asset Store
[C2] [C3] support C3 build service | support Banner ads, Interstitial ads, Rewared video ads.
  • How can i get clayio LeaderBoard tabs in C2?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No tab support right now. Tab support is a bit tricky with how C2 is setup. The layout would have to be individual events that add tabs, and once all those run, a final event that loads up the leaderboard, but that's kind of messy.

    Either way, I'll put it on my todo list - its priority depends on how many people request it :)

  • Hi! :)

    How is CocoonJS and Clay.io integration going? I would really like to see this!

  • Still working with a couple folks to get it working properly - should be done very soon

  • A big thanks goes how to Wink for helping out with the testing of CocoonJS integration - it's been a painful process but he's been extremely helpful!

  • problem solve hehehehe ^^

  • austin your welcome <img src="smileys/smiley1.gif" border="0" align="middle" /> I'm just glad I could help.

  • austin did you know that cocoonJS now supports "normal" webviews on top of the "special" canvas?

    That could fix all the problems!

  • The thing about their webview is you have to do some special things to communicate back and forth. It's something we'll end up implementing sooner or later, but we wanted to start with the DOMless version as that was a requested feature either way.

  • Another update: CocoonJS is still in the works -- I spent the last few days implementing a "Push to Windows 8 App Store" feature (and some pushing to other app stores as well), though that probably isn't very important to the folks here since C2 already has a nice exporter for that.

    What is relevant here is I've updated the plugin to work with Windows 8. Windows 8 has some restrictions where you're not allowed to call external scripts and CSS, so the API and styling for it are stored locally (this is also something necessary for CocoonJS). If you're exporting to Windows 8, change the export mode property for the Clay.io plugin to "Windows 8". It'll do the export and generate a default.html file, in that you'll have to add in:

    <link href="/api.css" rel="external" />

    <script type="text/javascript" src="/socket.io.js"></script>

    <script type="text/javascript" src="/api.js"></script>

    It isn't the prettiest solution (having to manually add that in), but it's the best I can do with the current C2.

  • Hi Austin, maybe it's only a stupid question, but... Is facebook signup to clay.io working? I've been trying to register from different facebook accounts and any of them worked.

    Congrats for your work! It was splendid to add that easy a leaderboard to my noob style game. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Looks like Facebook changed how they return a user's profile picture which was breaking things. Fixed -- thanks for pointing it out!

  • I'm developing a game under the beta revision 105 and I see that Clay.io doesn't work with it. Or maybe is my problem? Can you answer me, Austin?

  • I'll have to try out 105, can you be more specific on why the plugin doesn't work, any error messages?

  • austin I got an error the first time I started the game with the Clay.io plugin but I don't get it now.. I opened the chrome console and all seems to be fine but I don't know.

    The problem now is that I need to see the leaderboards and I've made a button for that in the game menu BUT when I click it it gives me that console message: "sending: leaderboard instance: 0.06857892218977213" and the leaderboard window doesn't appear.

    Any idea of what is happening?

    PD: Yes I've put the my API key to the game.

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