AirConsole Game Dev Contest 2017

  • cjbruce It gives you the device id through "AirConsole.deviceIdJoin as this was a join action

  • cjbruce It gives you the device id through "AirConsole.deviceIdJoin as this was a join action

    Here's what I tried, unsuccessfully:

    1. Set AirConsole->max players to 8

    2. In the simulator, "Add a New Controller" to create a total of 9 players.

    3. The first 8 players triggered an "On Device Join".

    4. The 9th player did not trigger an "On Device Join".

    What I have not tried:

    Instead of looking for an "On Device Join" for the 9th player, instead I should be using the "On Too Many Players" trigger, then inside its action use the "AirConsole.DeviceIDJoin" expression to get the deviceID of the 9th player?

  • Logically, when Max player is exceeded, onDeviceJoin does not trigger, but onTooManyPlayers does. As you said, get the id of the 9th and upward using AirConsole.DeciceIdJoin

  • cjbruce

    I just made that if your are interested: https://www.scirra.com/tutorials/9415/a ... sion-guide

  • Hello , i have made game in AirConsole, also i added controller. When i try to test my game this happens ->

    http://www.mediafire.com/view/0pqrhycddnvb8hf/pic1.png

    This is my construct 2 code for game->

    http://www.mediafire.com/view/xdncvd1ft32ih3u/pic2.png

    This is how my file looks unzipped->

    http://www.mediafire.com/view/0lejp69lab7cbq3/pic3.png

    This is how my controller.html code looks ->

    http://www.mediafire.com/view/mscyzr6f8lcjpec/pic4.png

    So my problem it wont to read my controller.html and screen.html, as you can see on 1st picture, in debug console.

    Do you have any solution for this, and do i need some special js file, because i readed that is js root of game.

    If you can help me i'll be so thankfull.

    <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused"> <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • What is that .html ending? The index file must be renamed to screen.html. The Adress is given without the html file at the end

    Exemple: http://www.airconsole.com/simulator/#ht ... .168.1.44/mygamefolder/

  • Hi all,anyone can help me? I don't know how to make d-pad control.

    I figured out how it works:

    $("#up").on(down_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'up'

    });

    });

    Yes, I read the forum and seen that it is possible to transmit information using json, I can't understand how this works, can someone throw an example with capx and controller.html ?

  • Use airconsole controller generator. The link is at the end of my tutorial concerning airconsole. And read it through, you will understand how to use airconsole then

  • I have tried to use the controller generator,but I don't know how to write the function to pass values in c2.

    in the example of pong is simple-you have

    <button id="up">UP</button>

    and there is a function which is passed the value in c2

    $("#up").on(down_event, function () {

    air_console.message(AirConsole.SCREEN {

    message: 'up'

    });

    in controller generator:

    <div class="dpad-arrow dpad-arrow-up"></div>

    my problem is that I do not know how to write functions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check out the pong exemple on airconsole git repo, I updated it lately and it should teach you everything needed

  • this link ?

    github.com/Psychokiller1888/airconsole-construct2/tree/UpdatingExemple/example_project

    I didn't notice a big difference

  • I don't understand what you want.... Of course there's no difference, the official repo does take the changes from mine......

  • I don't understand what you want.... Of course there's no difference, the official repo does take the changes from mine......

    I'm sorry, I translate through an interpreter.

    I have a code generated in airconsole-controller-generator.

    I don't understand how can I get a moment when it is pressed for example

    <div class="dpad-dpad arrow-arrow-up"></div>

    And I don't understand how can I convey this in c2

  • You use On Message Key in Construct 2 to capture the generated controller messages

  • You use On Message Key in Construct 2 to capture the generated controller messages

    and I have to write the function in the generated controller.html ?

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