Skip to main content
JoãoCésar17023019
Community Expert
Community Expert
September 22, 2017
Answered

Use smartphones as controllers like airconsole.com, PS4's PlayLink, and Just Dance Now?

  • September 22, 2017
  • 3 replies
  • 2375 views

Hi again!

I'm developing a game that will run on desktop but players will control the game using their smartphones as controllers.

It's a board game and users will send simple commands to move characters and navigate some menus.

What is the easiest approach to make a mobile AIR app communicate with a desktop AIR app?

It's not a massive and intense realtime multiplayer game. I only need a simple communication system.

Thanks!

This topic has been closed for replies.
Correct answer dmennenoh

Yup I used the built in socket server class... it should be perfect for what you want I think:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/ServerSocket.html

ServerSocket - Adobe ActionScript® 3 (AS3 ) API Reference

3 replies

dmennenohCorrect answer
Inspiring
September 28, 2017
JoãoCésar17023019
Community Expert
Community Expert
September 28, 2017

Hey, dmennenoh​! Thanks a lot!!!

Now I finally know where to start. I'll take a good look at this class.

I'm not a backend guy, so let me ask you: Do I need to use MySQL, PHP, setup a database, and so on?

Inspiring
September 29, 2017

No, you can send simple messages back and forth with socket server.

Inspiring
September 28, 2017

Hmmm... actually now that I think about it more I may have used the build in Socket Server... let me have a look and I will get back.

Inspiring
September 28, 2017

You could use a simple Node server. I've done this in the past to control a game using a tablet... worked great actually.