Integrating Clay.io to CocoonJS

0 favourites
  • 2 posts
From the Asset Store
Shark.io
$9.99 USD
Shark.io in the sea full of killer sharks, Sunday of life is the game. Who knows what is happening under the sea?
  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure if you found a solution to this yet but Austin posted in the main Clay.io thread about a similar issue: construct.net/en

    Try including clay.io/api/api.js into your exported zip file along with the other clay plugin files. This fixed the issue for me.

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