[PLUGIN] Clay.io (leaderboards & achievements)

Post your completed addons to share with the community

Post » Thu Oct 25, 2012 5:40 am

Do you have clay.css, socket.io.js and clay.js files included as resources?

I don't think I've specifically written up the docs on how to get C2 games working for Windows 8 yet - I just had the exporter option in there for someone who was asking a couple of weeks ago.

Include those 3 files and let me know if that fixes things (if they're not in the exported folder, go in /exporters/html5/plugins/clay and copy them over (plus you'll have to add as resources in Visual Studio - that's an extra step even if they're located in the folder)
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Thu Oct 25, 2012 12:51 pm

Yup I have the clay.io in my plugin folder, but I didn't set it on my Visual Studio as resource.

Ok, thanks Austin, I will try it again and inform you later,
B
12
S
2
G
1
Posts: 9
Reputation: 2,618

Post » Thu Oct 25, 2012 12:58 pm

One question,
can we use unique leaderboard ID to post our leaderboard with clay.io plugin for scirra?

Thanks,
B
12
S
2
G
1
Posts: 9
Reputation: 2,618

Post » Thu Oct 25, 2012 7:21 pm

The Unique Identifier for the leaderboard has the same problem the Achievements had. The field only accepts numbers.
B
200
S
51
G
30
Posts: 896
Reputation: 36,494

Post » Sat Oct 27, 2012 11:04 am

On my iPad 3 iOS6, pressing the "X" on a modal does not close them.
B
7
S
2
Posts: 75
Reputation: 1,100

Post » Sat Oct 27, 2012 12:53 pm

@moenchlax - how did you go with clay.io in your Win 8 app? If it works I'd be pretty keen to add that into my current game:

http://apps.microsoft.com/webpdp/app/battleship-islands/5e25ffd2-2cb0-4708-b88a-4bdc61f19107
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

Post » Sun Oct 28, 2012 1:45 am

@moenchlax should work with the newest version of the plugin

@mcdan which modal are you trying to close and how many are open? I haven't upgraded to ios6 yet because of the whole maps deal, but worst case scenario I can upgrade to check it out and diagnose further

@EyeHawk the API should work if you export as Windows 8 and include socket.io.js, clay.js and clay.css. Per Windows 8's approval process, since Clay.io asks for user info, you'll have to include a privacy policy in the settings charm. You can add that with something like:
[QUOTE]
WinJS.Application.onsettings = function (e) {
    e.detail.applicationcommands = {
        "about": {
            title: "Privacy", href:"http://clay.io/privacy"
        }
    }
    WinJS.UI.SettingsFlyout.populateSettings(e);
};
[/QUOTE]

For an example of a game with Clay.io's API in the Windows 8 store, see http://apps.microsoft.com/webpdp/en-US/app/word-wars/7ed9304e-c0de-4a0d-880c-02dd496154f1 (though that's not a C2 game)
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Sun Oct 28, 2012 3:46 am

Awesome thanks Austin! This will be massively useful
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

Post » Wed Oct 31, 2012 4:36 pm

Slowley but surely I get the hang of it, but how do I activly log out?!
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Oct 31, 2012 4:51 pm

@Austin - On the: [quote]...you'll have to include a privacy policy in the settings charm. ...[/quote]
Where do you put that code? (in the minimized output of Construct2?)

@Weishaupt - I think the only way is to log into the Clay.io website and log-out there. (I believe that's what I did when I was testing it.) Then you won't be logged-in in when you go into your game.
Austin, is there something we are missing?
B
200
S
51
G
30
Posts: 896
Reputation: 36,494

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest