Integrating Clay.io to CocoonJS

Get help using Construct 2

Post » Wed Jul 03, 2013 9:18 am

Hello, I'm trying to use leaderboard in one of my games.
I read tutorials and many threads but it still doesn't work.
I'm using newest version of Clay plugin and CocoonJS v1.4.
Tested in Android devices.

These are what I did:
- Make new game in Clay.io
- Set API key and make a leaderboard.
- Load Clay plugin and set API key.
- Put some events and actions.
- Preview in browser. Works perfect.
- Export to CocoonJS.
- Copying 'webview' folder and other 4 files into zip file.
- Test in CCJS Launcher. I can see something's going on about clay plugin in console window, but nothing happens. There's no problem in game except for Clay features.
- Compile and execute.
- Same things happen.

Is there anything I have to review or consider?
B
23
S
8
G
1
Posts: 172
Reputation: 2,780

Post » Fri Oct 18, 2013 10:55 pm

Not sure if you found a solution to this yet but Austin posted in the main Clay.io thread about a similar issue: http://www.scirra.com/forum/plugin-clayio-leaderboards-achievements_topic54357_page12.html

Try including http://clay.io/api/api.js into your exported zip file along with the other clay plugin files. This fixed the issue for me.
B
18
S
6
G
2
Posts: 57
Reputation: 2,479


Return to How do I....?

Who is online

Users browsing this forum: HellMax, vGoliath and 1 guest