AirConsole Game Dev Contest 2017

Discussion and feedback on Construct 2

Post » Tue Jan 17, 2017 8:19 am

I said in Construct 2

Quick question, did you read my tutorials?
B
29
S
11
G
3
Posts: 212
Reputation: 4,168

Post » Tue Jan 17, 2017 8:25 am

Message: megga can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Psychokiller1888 wrote:I said in Construct 2

Quick question, did you read my tutorials?


i read it :
www.scirra.com/tutorials/9414/construct ... airconsole
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 8:28 am

Good. This teaches the bases. Then you download the pong exemple, with the the capx and you will learn how the controllers talk to the game
B
29
S
11
G
3
Posts: 212
Reputation: 4,168

Post » Tue Jan 17, 2017 8:29 am

Psychokiller1888 wrote:Good. This teaches the bases. Then you download the pong exemple, with the the capx and you will learn how the controllers talk to the game

I understand how the code works in c2 :D
I don't understand how to create your controller.
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 8:32 am

Then you'll need to read again, the screen shots can't be better explained sorry.
https://developers.airconsole.com/#!/guides/construct2
B
29
S
11
G
3
Posts: 212
Reputation: 4,168

Post » Tue Jan 17, 2017 8:48 am

Message: megga can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Psychokiller1888 wrote:Then you'll need to read again, the screen shots can't be better explained sorry.
https://developers.airconsole.com/#!/guides/construct2

I read and reread it.
I very rarely ask for help on the forum only as a last resort,yesterday I spent about 6 hours trying to figure out how it works.

in the example is <button id="up">MOVE UP</button>
is the code that sends the message
$("#up").on('touchstart', function () {
airconsole.message(AirConsole.SCREEN {
message: 'up'
});
});

I understand that $("#up") is button id="up"
but if I have <div class="dpad-dpad arrow-arrow-up"></div>

I should write so ?
$("#dpad-dpad arrow-arrow-up").on('touchstart', function () {
airconsole.message(AirConsole.SCREEN {
message: 'up'
});
});
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 9:10 am

That's basic jquery... # is a id selector, . is a class selector. You don't need to write anything if you use the controller generator, generate, export, follow instructions, and just do the construct 2 side
B
29
S
11
G
3
Posts: 212
Reputation: 4,168

Post » Tue Jan 17, 2017 9:28 am

Psychokiller1888 wrote:That's basic jquery... # is a id selector, . is a class selector. You don't need to write anything if you use the controller generator, generate, export, follow instructions, and just do the construct 2 side


I tried to learn but then the question is why isn't it working for me or what am I doing wrong?
Image
Image
I generated controller instructions.
B
5
Posts: 10
Reputation: 245

Post » Tue Jan 17, 2017 9:32 am

You need to use the on message key condition in Construct 2 to capture these events, as I said before already. The packet will come in a form of a c2 dictionary which you will need to read and act as needed for your game. For more infos, read my second tutorial about airconsole expressions
B
29
S
11
G
3
Posts: 212
Reputation: 4,168

Post » Tue Jan 17, 2017 9:46 am

Psychokiller1888 wrote:You need to use the on message key condition in Construct 2 to capture these events, as I said before already. The packet will come in a form of a c2 dictionary which you will need to read and act as needed for your game. For more infos, read my second tutorial about airconsole expressions

Image
why not come to the message?
B
5
Posts: 10
Reputation: 245

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: jefftrier, vikuserro and 4 guests