Airconsole controller maker

Post your completed addons to share with the community

Post » Wed Jan 11, 2017 1:58 am

Image

This plugin will let you create controllers in Construct 2 by simply dragging and dropping them.


Example:
Demo
Download demo
Download (Includes the plugin , the cmd command, the pong demo and controller):
Download
Preview:
Image


Instructions:
------------------------------------------------------------------------------------
[I] CONTROLLER
------------------------------------------------------------------------------------

1- Open pongcontroller.capx end export as HTML5 website to your localhost directory.
(Ex for Xampp: xampp\htdocs\pong\) - http://localhost/pong/
2- Copy Magicwand.cmd to xampp\htdocs\pong\.
3- Run Magicwand.cmd. It will do all the work for you.
------------------------------------------------------------------------------------
[II] GAME
------------------------------------------------------------------------------------

4-Open pong.capx and export as HTML5 website to your localhost directory.
5-Rename index.html to screen.html.
------------------------------------------------------------------------------------
[III] TESTING
------------------------------------------------------------------------------------

6- Make sure Xampp is running.
7- Visit http://www.airconsole.com/simulator/#de ... host/pong/.
You will need to log in with your gmail account so that Airconsole can get your name ( will be used as device nickname).
8- Thats it !

Credits to PsychoKiller1888 for the Airconsole plugin and the Pong demo.

Have fun customizing your controller! Remember that you can do anything with your controller ! Think out of the Box !
Last edited by X3M on Sat Feb 18, 2017 6:09 pm, edited 14 times in total.
Banned User
B
17
S
7
G
24
Posts: 388
Reputation: 14,494

Post » Wed Jan 11, 2017 2:08 pm

Everything now is working fine.
Banned User
B
17
S
7
G
24
Posts: 388
Reputation: 14,494

Post » Thu Jan 12, 2017 10:24 pm

Great you used my updated pong exemple, good job!

In your demo, the controller don't seem to send the correct events though... The bars should stop moving when you stop pressing the controller arrows. So you need keyUp and keyDown events

Just a word to let you know that the controller generator is now compatible with Construct 2: https://developers.airconsole.com/tools ... dex.html#/
B
34
S
12
G
3
Posts: 233
Reputation: 4,490

Post » Thu Jan 12, 2017 11:01 pm

@Psychokiller1888 I've just added the On released conditions.
Banned User
B
17
S
7
G
24
Posts: 388
Reputation: 14,494

Post » Fri Jan 20, 2017 9:52 am

Could you add accelerometer options? For example, as the occlusions of the Touch object. Thank you, and your plugin is amazing!
B
10
S
2
Posts: 205
Reputation: 1,619

Post » Sat Jan 21, 2017 1:02 pm

amariscal wrote:Could you add accelerometer options? For example, as the occlusions of the Touch object. Thank you, and your plugin is amazing!


I can't because it's not a feature of the Airconsole controller API, the
Code: Select all
onDeviceMotion
event resides in the main Airconsole API, so you need to contact @Psychokiller1888 so that he implements it in his plugin.

https://developers.airconsole.com/api/a ... nputs.html
Banned User
B
17
S
7
G
24
Posts: 388
Reputation: 14,494

Post » Wed Jan 25, 2017 10:08 am

@x3m Nice tool. I played a bit with it and it seems like the "on release triggers" are broken and a returns a javascript error. Just wanted to let you know :)
B
57
S
24
G
14
Posts: 771
Reputation: 13,133

Post » Wed Jan 25, 2017 10:26 am

X3M wrote:
amariscal wrote:Could you add accelerometer options? For example, as the occlusions of the Touch object. Thank you, and your plugin is amazing!


I can't because it's not a feature of the Airconsole controller API, the
Code: Select all
onDeviceMotion
event resides in the main Airconsole API, so you need to contact @Psychokiller1888 so that he implements it in his plugin.

https://developers.airconsole.com/api/a ... nputs.html



Will do, or at least in the new plugin
B
34
S
12
G
3
Posts: 233
Reputation: 4,490

Post » Wed Jan 25, 2017 11:07 am

@Anonnymitet Investigating... (I didn't test them because of how lazy I am...)
@Psychokiller1888 Roger

Edit: I screwed up the IDs, fixing ... Crap.

Plugin updated!


Sorry for the inconvience
Banned User
B
17
S
7
G
24
Posts: 388
Reputation: 14,494

Post » Wed Jan 25, 2017 11:17 am

@X3M,

Thank you for making this! This opens up a whole number of possibilities for gameplay. I am playing with the demo .capx now, and have a few questions:

1. Is there a way to change the images on buttons? Or should we just not include the image files (leaving the button invisible, but still active), and instead put sprites onscreen underneath the buttons?

2. Are the controls themselves HTML elements?

3. Is it possible to lock orientation to landscape?
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
50
S
15
G
25
Posts: 424
Reputation: 17,296

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests