AirConsole Game Dev Contest 2017

Discussion and feedback on Construct 2

Post » Sun Jan 15, 2017 5:05 pm

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/
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Mon Jan 16, 2017 3:40 pm

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 ? :)
B
5
Posts: 10
Reputation: 245

Post » Mon Jan 16, 2017 6:01 pm

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
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Tue Jan 17, 2017 7:36 am

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.
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 7:39 am

Check out the pong exemple on airconsole git repo, I updated it lately and it should teach you everything needed
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Tue Jan 17, 2017 7:57 am

this link ?
github.com/Psychokiller1888/airconsole-construct2/tree/UpdatingExemple/example_project

Image I didn't notice a big difference :D
Last edited by megga on Tue Jan 17, 2017 8:01 am, edited 1 time in total.
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 7:59 am

I don't understand what you want.... Of course there's no difference, the official repo does take the changes from mine......
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Tue Jan 17, 2017 8:08 am

Psychokiller1888 wrote: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.
Image
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
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 8:16 am

You use On Message Key in Construct 2 to capture the generated controller messages
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Tue Jan 17, 2017 8:18 am

Psychokiller1888 wrote: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 ?
B
5
Posts: 10
Reputation: 245

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests