How to implement FGL HTML5 SDK ?

0 favourites
From the Asset Store
Jump on the mole rats and see how far you can go!
  • Is it an idea to ask Scirra for support on implementation ?

    This could make so many more construct 2 developers happpy, and likely lots of steps closer to purchasing the buisness license.

    Many developers already have games available, this could rapidly spread 100s of existing games made with construct 2.

  • lennaert

    This is good idea. +1

  • Can somebody post an example project with the plugin implemented?

  • Has anyone gotten the API fully working in a C2 game?

  • Using EncryptedCow's plugin and with some help from Luke at FGL I was able to get to get the SDK running at least. When it's properly setup in the Index.html file, you should get this screen first.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/b4fb1f3f-7339-4961-ab6c-0ce0804e6d10/2014-02-11_0912.png" border="0" />

    I'm going to do the next steps of testing now and go from there.

  • Success with Cross Promotion and Ads.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/d2325fc7-48c2-4c6d-87e6-a8e019c7285a/2014-02-11_0915.png" border="0" />

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/e00203cf-fbb8-4bc7-88ca-293a055386df/2014-02-11_0916.png" border="0" />

  • Has anyone gotten the API fully working in a C2 game?

    I managed to get the 1.2 api 100% working and got it to do preview from C2.

  • Here are the changes I made to the index.html file after export.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/7e563c7d-c241-4c77-9a5c-65d43d2d16c6/2014-02-11_0920.png" border="0" />

  • jayderyu

    Are you using a plugin, if so which one?

  • ArcadEd

    I didn't use any plugins. To release to FGL I suspect the developer would still have to hack the index. But since my fgl capx api works from preiview mode it's convenient for testing.

  • How did you make it work on preview?

    I changed the C:\Program Files\Construct 2\exporters\html5\templates preview.html and preview-fs .html to include the fgl.js and start game, but it throws error on fgl parts.

    For the exports it works perfect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi... so do we have a reliable way to implement the new 1.2 api? Previously I used this: scirra.com/tutorials/790/implement-fgl-html-5-api-in-construct-2 and it worked like a charm. Now it seems we need another plugin?

  • For the new version I replaced the fgl.js with the new one and modify line 416 to:

    self.overlay. self.overlay.ontouchend = function(){

    so that the api to work on mobiles.

    But beware they haven't payed me for games I submitted on 6 january so the whole thing might be a big fake offer.

  • Nope, they've payed me for a game so I can confirm this is legit. Took a while with the payment though. Also they've been making some changes to the submission process so there might be a delay, too.

  • How well do they pay? Is it based on impressions, or for submitting a game with the API in place?

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