smitchell's Forum Posts

  • Does anyone know a easy way of making a Conveyor Belt?

    It would look something like this:

    <img src="http://lh4gleusercontent/xqMXuVD0OthRPwK9h4pzhxc7UBoCa6FtAgi0J0PUDryGo_8xqOHK8bpde1nteYj8BqgdAe-iRA=s640-h400-e365" border="0" />

  • Thanks harrio, Yeah its working i was talking with people last night, So i know it works :)

  • How did you get high scores working?

  • What I do, is when I update the software to the newer version (eg, R71) I quickly rename the old copy to Construct2 Old, and then install it, When it prompts you to uninstall the older version it finds say no, It will make the newer version the default but you still have the older version just in case, so then test your projects on the new version if they work delete the old..

    Or you could be normal and if there is a problem go to the release archives and download the copy it worked on! :D

  • Take a look at this, dl.dropbox.com/u/51270524/SOCIAL-CHAT-TEST/index.html

    • this is thanks to your plugins!!!!
  • Sorry, i Will remember that next time, Where is the best place to put it?

  • Hi, Me again with my experimental web API's in Construct 2.

    Here today with a social implementation, Like a chatroom i guess.

    Can people help me test this please, Simply by clicking on the link, Entering a username, and then chat!!!

    Pretty Please :)

    Link - http://dl.dropbox.com/u/51270524/SOCIAL-CHAT-TEST/index.html

    ps, I apologize for the multiple threads, But im not sure where to put this, and i want as much testing as possible.

  • Try -

    int(random(5,10))

  • use the random function.

    for example if i want a random number between 1 and 100 -

    random(100) this will return a random value from 1 -100

        - This will return a decimal value though.

    If you want a integer(whole number) ---

    int(random(100) -- Will return a whole number between 1 - 100

  • 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!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!!