A user known as YellowAfterlife has kindly created a plugin that easily integrates Game Jolt's API into Construct 2.
Forum post: http://gamejolt.com/community/forums/to ... -api/2867/
Creator's website post: http://yal.cc/gamejolt-api-for-construct-2/
[quote:3afwqhe3]Description:
This is a simplistic API for Construct 2. It includes auth, achievement unlocking, and score posting, all with according callbacks.
Installation:
As simple as it goes - unzip folder to "Construct 2\exporters\html5\plugins" directory, and restart IDE. Plugin will appear under "Platform specific" category on next launch.
Usage:
Include GameJolt plugin into your project by adding an object of it (it is global, so you only need to do this once). Set up your game ID and private key in object properties (this data can be discovered on dashboard). Afterwards, add according events and actions where appropriate.
Note that while the plugin will automatically authenticate the user, it can take a second or two to do that, so for "first visit" actions you should use "Logged in" event.