Playtomic for Construct 2 Plugin

  • This plugin is no longer supported!

    Unfortunately it looks like Playtomic is in a pretty tough situation, and their service has become quite unreliable and may cease to exist completely within a month. For this reason I’ve chosen to stop supporting the plugin. There will be no more updates, and unfortunately I won’t be able to fix or help with it anymore.

    If you are looking for a replacement, I recommend you check out the excellent Clay.io instead which is what I’m using now.

    Demo


    Important Stuff

    This plugin lets you use some of Playtomic’s features, such as counting the number of people who have played your game, or died on level X. You will need a Playtomic  account to use it in your project. Not all Playtomic features are supported (see below for details).

    THIS IS NOT AN OFFICIAL PLAYTOMIC PLUGIN
    THIS IS NOT AN OFFICIAL SCIRRA OR CONSTRUCT 2 PLUGIN

    It’s just something quick I made out of necessity. It probably has bugs. We are not
    guaranteeing that it will work, or that we will fix it.

    The Playtomic documentation recommends that you obfuscate the project’s SWFID, GUID & APIKEY but this plugin makes no attempt to do so! Use at your own risk. Personally, I think if somebody cares enough to try to find them, they probably will do so even if it’s obfuscated.

    Download & Installation

    Copy the ‘playtomic’ folder to ‘<you Construct 2 install directory>\exporters\html5\plugins’.

    Then you can use the plugin from within Construct 2.

    Tutorial

    1. Add a Playtomic object to your Construct 2 project
    2. Create a Playtomic account and project
    3. From your project’s settings on the Playtomic website, copy the SWFID, GUID & APIKEY
    4. Enter the SWFID, GUID & APIKEY in the Construct 2 Playtomic object properties
    5. When you start the project, the plugin will now try to connect to the Playtomic servers and increase the number of ‘Views’ by 1.

    Note: always check to make sure that Playtomic is ready before using the other features. It takes a short moment for the plugin to load, so it will not be ready immediately after layout start.

    Actions

    Conditions

    Expressions

    Supported Playtomic Features

    • Save Metrics (Views, Plays, etc)
    • Load Metrics (Views, Plays, etc)
    • Leaderboards
    • Player Levels

    License

    This plugin has no license. Do whatever you want with it… use commerically, modify,
    redistribute, etcetcetc. You don’t have to, but it would be nice if you included
    somewhere that you got it from:

    Funstorm

    Demo Project Art Thanks To

    Backyard Ninja (Goblin)

    flaivoloka (Menu Background)

    Questions, Comments, Feedback, Bugs

    Please let me know if you find a bug and I will do my best to fix it. I don’t have enough time to add all the Playtomic features, so if you need a specific feature and know a little JavaScript, feel free to modify the plugin and add it yourself :)