[PLUGIN] Clay.io (leaderboards & achievements)

Post your completed addons to share with the community

Post » Mon Mar 25, 2013 12:48 pm

@austin Eclipse can show error logs when running an emulator, though I usually test straight to device.

I'm in the very early stages of a new android and ios game project, which I think will benefit hugely from clay.io integration. When I get to the stage of starting to test social and iap, I'll let you know which errors are being thrown. I'd rather embed in new games, rather than go back and try once again with existing games.
Thanks, Andy
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Wed Mar 27, 2013 4:15 pm

Hi Austin,

Is there anyway to change the size of the window to make it larger on Windows Phone? The modal window looks extremely small. In addition, I cannot invite Facebook friends to the game. Any solution?
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Thu Mar 28, 2013 7:08 pm

I've created a developer survey to help us choose where to focus for the next few months. If you have some spare time, please fill it out here

@AndyWatson - when you get to that point, do let me know what the errors are so I can try to get it working with Cordova.

@tipztv I don't have a Windows Phone to test on, but I'll see what I can do. Are you just running the game from a browser on the phone, or is it a packaged app (exported with C2 Windows Phone 8 mode)?
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Fri Mar 29, 2013 3:35 am

@austin: You can probably test the plugin on the WP8 emmulator or I can test it for you if you want. It is a packed app, exported with C2 WP8 mode.

I followed the Clay.io Windows 8 tutorial to get the plugin works on WP8, since they are all using VS studio and the structure of the projects are quite similar.

In the game, the plugin works. I can see the leaderboard, messages which said the score is posted. The leaderboard is sized wrong though. All I can see is the leaderboard name.

I cannot get the invite FB friends works. It just hang at the invite frined window, there's not pop up window or whatever. If you need screenshots, I can provide it via email.
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Tue Apr 02, 2013 8:56 pm

With C2 R124, you should be able to store the game save data on Clay.io as well. Just pass the JSON string it generates to the Clay.io data storage action, and it will store it 'in the cloud'.

Let me know if any of you run into issues with this!
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Mon Apr 08, 2013 12:14 am

Here is some custom leaderboard example with tabs for @amkp (via) using the DIV plugin


(it uses my leaderboard ID by default and you'll see some numbers before the name - I'm using those as links in the actual project)

@austin I never needed to use the "last 24h" filter before, but I noticed that when "fetch leaderboard object" returns no results for a time frame, and you try to call "clayio.LeaderboardName(0)" there's a console error that pops up, can you have a look?
(I tried the above capx with your test account "testfff" ID16, which had to recent entry)lemo2013-04-08 00:18:33
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Sat Apr 13, 2013 7:41 pm

Hi @austin,

Fantastic plugin!

I was thinking of using it in my game, but wanted to clarify something first.

Some of the posts I've read on game site forums, seem to suggest that some people are still wary of logging in to things they are unfamiliar with.

I'd like to offer users an opportunity to opt-out of posting their high scores online. But leave the option open should they change their minds in the future.

So for example when my game first loads, a pop up box will open to ask if the user would like to post high scores. If they select yes then clay.io login box appears. If they select no then it does not. And if they change their mind in the future, there would be an option to turn on high scores in my game settings window, which would activate clay.io login window again.

Can this be achieved in clay.io, and if so do you have any documentation to show how this would be done.

Thanks
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Mon Apr 15, 2013 3:08 pm

Hi @austin,

I've been looking through the documentation on the clay.io website, and I've sort of answered my last question (see above). I've now implemented a window where users can choose to login, and I've added a login button in my settings window, so they can login at a later date if they wish.

I'd also like to allow them to log out of clay.io, if they decides they don't want to post their scores anymore. How can I allow them to log out of the system from within the game?

Thanks
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Tue Apr 16, 2013 1:50 am

@lemo - try with the latest version of the plugin. That *should* be fixed.

@Pantaloons - that's something you should implement on your own. We allow players to login as a guest, but if you want it so their scores don't post at all, you should create an option in your game. Then I would use the C2 local storage object to store their decision (post or don't post). To 'log them out' that would just be updating their decision to be "don't post"
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Tue Apr 16, 2013 8:16 am

Thanks for the reply @austin, I'm a little surprised that there's no way for a user to log out of clay.io (from within a game), but Ill give your suggestion a try!Pantaloons2013-04-16 08:18:53
B
8
S
2
G
1
Posts: 63
Reputation: 880

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests