smitchell's Recent Forum Activity

  • As long as you do not want to upload to the scirra arcade, then use this plugin - http://www.scirra.com/forum/plugin-pause_topic46693.html

    So for example,

    PauseButton - onClick

         pause - toggle pause

    This will pause and unpause the game when clicked

  • The output is still error..

  • Yeah javascipt is actually very similar to Actionscript3, I want to make a plugin, I did start one. but got Bored :P.

    Yeah originally i tried using AJAX but it didn't work..

  • Thanks Tom!!

  • Can someone help me out please, Im trying to execute this API. it can be used with multiple languages, Including javascript and PHP, so im trying to use it, because surely it works with construct2 right?

    But when using the ajax, i test for a error, and i get one. Nothing specific, just using the AJAX on error event, set text to 'error'.

    Well here is the PHP -

    // Submit those variables to the server

    $post_data = array(

        'api_key' => 'f2eb0260b6073a40f4b0b128a66709aaebbeb754',

        'game_id' => 'Rf2x0WpI8',

        'response' => 'JSON'

    );

    // Send a request to example.com

    $result = post_request('https://www.scoreoid.com/api/getNotification', $post_data);

    if ($result['status'] == 'ok'){

        // Print headers

        echo $result['header'];

        echo '<hr />';

        // print the result of the whole request:

        echo $result['content'];

    }

    else {

        echo 'A error occured: ' . $result['error'];

    }

    I Also tried to use the javascript version, using the callJS plugin, But I do not know what to call, $.post?

    $.post("https://www.scoreoid.com/api/getNotification", { api_key: "f2eb0260b6073a40f4b0b128a66709aaebbeb754", game_id: "Rf2x0WpI8", response: "JSON"},

       function(data) {

         alert("Data Loaded: " + data);

       },

    "json"

    );

  • Wow thanks! I was looking on there site today, I remembered them from my days of Actionscript3, I actually encorporated it into Construct2 using the HTML Div. But your plugin must be better! :D

    Could you possibly take a look at this API and make a plugin?

    I used this API in every game I ever made with Actionscript3, And I guess your pretty good at taking API's and putting them into a plugin right?

    This would be good for the whole community, it means we could have in game notifications, scoreboards and lots more!!

  • Thanks!

  • I would try help, But i have no idea what you mean.

    Whats locked??

  • Maybe.. Im not that good at creating plugins, Have not looked into it that much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cool! Can't wait to try it out!!

    Do you have anything yo can show the community right now?

    Also i just found out that appMobi open sourced all there HTML5 stuff..

    For example appmobi.com/documentation/notification

    We can use that in construct easily... Already working on it ;)

  • Yeah, Using the HTML Div plugin, hosting the external IScroll Script we can then use IFrame to pull in the HTML File onto Construct2!!! Its Pretty simple, yet effective!!

    If you can make that into a plugin, that would be cool! More practical!

    Because using HTML Div you have to have a internet connection..

  • I have implemented a mobile scrolling example in constrcut2, i will refine it before uploading the source

    Here is the preview -- IOS/mobile Scrolling

smitchell's avatar

smitchell

Member since 25 Nov, 2011

None one is following smitchell yet!

Connect with smitchell

Trophy Case

  • 13-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies